/*
  Homepage styles (no frameworks)
  - Uses brand tokens defined in navbar/navbar.css :root
  - Replace background image and copy as needed
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  color: var(--text, #1a1a1a);
  background: #f5f7fb;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(255, 140, 66, 0.4);
  outline-offset: 2px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: -0.2px;
}

.section-heading p {
  margin: 0;
  color: rgba(26, 26, 26, 0.72);
  line-height: 1.5;
}

/* HERO */
.hero {
  min-height: calc(100vh - var(--navbar-height, 72px));
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(10, 23, 44, 0.78), rgba(10, 23, 44, 0.28)),
    url("images/0.jpeg");
  /* Placeholder: replace header.jpg with your hero image */
  background-size: cover;
  background-position: center;
}

.hero__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 5%;
}

.hero h1 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.6px;
}

.hero__subheading {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
  font-size: 16px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition:
    transform var(--motion-fast, 160ms) var(--motion-ease, ease),
    filter var(--motion-fast, 160ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

.btn--primary {
  background: var(--brand-accent, #ff8c42);
  color: #1a1a1a;
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn:hover {
  filter: brightness(1.03);
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-1px) scale(1.02);
  }
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* SERVICES */
.services {
  padding: 56px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--motion-medium, 420ms) var(--motion-ease, ease),
    box-shadow var(--motion-medium, 420ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(calc(var(--lift-sm, 4px) * -1));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  }
}

.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(44, 100, 173, 0.14);
  border: 1px solid rgba(44, 100, 173, 0.18);
  border: 1px solid rgba(31, 97, 141, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

.service-card__icon svg {
  width: 60%;
  height: 60%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--motion-fast, 160ms) var(--motion-ease, ease);
}

@media (hover: hover) {
  .service-card:hover .service-card__icon svg {
    transform: rotate(-6deg) scale(1.06);
  }
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.service-card p {
  margin: 0 0 12px;
  color: rgba(26, 26, 26, 0.72);
  line-height: 1.5;
}

.service-card__link {
  color: var(--brand-primary, #2c64ad);
  font-weight: 800;
  text-decoration: none;
}

.service-card__link:hover {
  text-decoration: underline;
}

/* PRICES */
.prices {
  padding: 10px 0 56px;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.price-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  transition:
    transform var(--motion-medium, 420ms) var(--motion-ease, ease),
    box-shadow var(--motion-medium, 420ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

@media (hover: hover) {
  .price-panel:hover {
    transform: translateY(calc(var(--lift-sm, 4px) * -1));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
  }
}

.price-panel__header h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.muted {
  color: rgba(26, 26, 26, 0.66);
}

.price-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

.price-card {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.7);
  padding: 14px;
  transition:
    transform var(--motion-fast, 160ms) var(--motion-ease, ease),
    box-shadow var(--motion-fast, 160ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

@media (hover: hover) {
  .price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1);
  }
}

.price-card__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  margin: 0 0 8px;
}

.price-card__value {
  margin: 0;
  text-align: right;
  font-weight: 700;
}

.price-indicator {
  font-weight: 900;
}

.price-indicator--up {
  color: #b42318;
}

.price-indicator--down {
  color: #067647;
}

/* Contact Us Form Styling */
/* Main Container Flexbox Layout */
.main-container {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Aligns items to the top */
  gap: 40px; /* Adds space between the left and right side */
  flex-wrap: wrap; /* Allows the layout to adjust on smaller screens */
  margin: 0 auto;
  padding: 40px;
  width: 100%;
  max-width: 1200px;
}

/* Left side content styling */
.left-side {
  flex: 1; /* Allows left content to take the remaining space */
  max-width: 20%; /* Restricts width of left side */
  color: #333;
}

.left-side h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #1f1f1f;
}

.left-side p {
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* Contact Us Form Container */
.contact-us-container {
  flex: 1; /* Allow the container to adjust size relative to other content */
  width: 100%; /* Take full available width and cap with max-width */
  max-width: 1100px; /* Increased cap width on larger screens */
  margin: 0 auto; /* Center within flex/grid/normal flow */
  align-self: center; /* Ensure centering along cross-axis in flex layouts */
  background-color: #f9f9f9;
  padding: 30px; /* Slightly larger padding */
  border-radius: 10px; /* Rounded corners for a modern look */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Slightly more prominent shadow */
  transition:
    transform var(--motion-medium, 420ms) var(--motion-ease, ease),
    box-shadow var(--motion-medium, 420ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

@media (hover: hover) {
  .contact-us-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  }
}

.contact-us-container h2 {
  font-size: 1.5rem; /* Smaller font size */
  text-align: center;
  color: #333;
  margin-bottom: 15px;
}

/* Form Group Styling */
.contact-us-container .form-group {
  margin-bottom: 15px; /* Spacing between fields */
}

.contact-us-container label {
  font-size: 0.95rem; /* Slightly smaller font size */
  color: #666;
  display: block;
  margin-bottom: 5px; /* Space between label and input */
}

.contact-us-container input[type="text"],
.contact-us-container input[type="email"],
.contact-us-container textarea {
  width: 100%; /* Full width of the container */
  padding: 10px; /* Comfortable padding */
  font-size: 0.95rem; /* Slightly smaller text */
  border: 1px solid #ddd;
  border-radius: 5px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.3s;
}

.contact-us-container textarea {
  resize: vertical;
  height: 120px; /* Slightly larger default height */
}

.contact-us-container input:focus,
.contact-us-container textarea:focus {
  border-color: #3498db; /* Highlight border on focus */
}

.contact-us-container button.submit-contact-form {
  width: 100%; /* Full width button */
  padding: 12px; /* Comfortable padding */
  background-color: #3498db;
  color: #fff;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  transition:
    background-color var(--motion-fast, 160ms) var(--motion-ease, ease),
    transform var(--motion-fast, 160ms) var(--motion-ease, ease);
  transform: translateZ(0);
}

.contact-us-container button.submit-contact-form:hover {
  background-color: #2980b9;
}

@media (hover: hover) {
  .contact-us-container button.submit-contact-form:hover {
    transform: scale(1.01);
  }
}

.contact-us-container button.submit-contact-form:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .service-card,
  .price-panel,
  .price-card,
  .contact-us-container,
  .service-card__icon svg,
  .contact-us-container button.submit-contact-form {
    transition: none !important;
    transform: none !important;
  }
}

/* Google reCAPTCHA */
.contact-us-container .g-recaptcha {
  margin: 15px 0;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
  .main-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center-align for mobile */
    max-width: 100%; /* Reduce max-width for smaller screens */
  }

  .left-side {
    max-width: 100%; /* Full width on smaller screens */
  }

  .contact-us-container {
    width: 100%;
    max-width: 100%; /* Expand container width further on smaller screens */
    margin: 0 auto; /* Keep centered on mobile */
    align-self: center; /* Ensure cross-axis centering in column flex */
    padding: 20px; /* Adjust padding for smaller screens */
  }
}

@media screen and (max-width: 480px) {
  .main-container {
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center-align for mobile */
    max-width: 100%; /* Reduce max-width for smaller screens */
  }

  .contact-us-container {
    width: 100%;
    padding: 15px; /* Compact padding for very small screens */
    margin: 0 auto; /* Keep centered on very small screens */
  }

  .contact-us-container label {
    font-size: 0.85rem; /* Slightly smaller labels */
  }

  .contact-us-container input[type="text"],
  .contact-us-container input[type="email"],
  .contact-us-container textarea {
    font-size: 0.85rem; /* Smaller input text */
  }

  .contact-us-container button.submit-btn {
    padding: 10px; /* Adjust button size for small screens */
    font-size: 0.9rem; /* Smaller font */
  }
}

/* Breakpoints */
@media (min-width: 768px) {
  .section-heading h2 {
    font-size: 30px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
