:root {
    --dark: #0c0f12;
    --surface: #12161a;
    --surface-alt: #171c21;

    --text: #e8edf2;
    --muted: #9aa6b2;

    --accent: #1f6feb;
    /* deep blue (trust, trade) */
    --accent-soft: rgba(31, 111, 235, 0.15);

    --line: rgba(255, 255, 255, 0.06);

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* GLOBAL */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--dark);
    color: var(--text);
    letter-spacing: -0.01em;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
}

h2 {
    font-size: 2.2rem;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.narrow {
    max-width: 700px;
}

.center {
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

/* NAV */
.nav {
    position: fixed;
    width: 100%;
    background: rgba(14, 17, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
    padding: 12px 0;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 40px;
}

.nav a {
    position: relative;
    margin-left: 20px;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

/* underline (hidden by default) */
.nav a::after, #footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: white;
    transition: width 0.6s ease;
}

/* hover state */
.nav a:hover, #footer-links a:hover {
    color: white;
}

/* animate underline */
.nav a:hover::after, #footer-links a:hover::after {
    width: 100%;
}

/* HERO */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 110%;
    /* slightly larger for parallax movement */
    object-fit: cover;
    filter: brightness(0.4);
    transform: translateY(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

.hero-content {
    position: relative;
    max-width: 600px;
}

.hero h1 {
    font-size: 2.8rem;
}

.hero p {
    color: var(--muted);
}

/* BUTTONS */
.btn-primary {
    display: inline-block;
    margin-top: 20px;
    background: white;
    color: black;
    padding: 12px 22px;
    border-radius: 40px;
}

.btn-outline {
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 30px;
}

/* SECTIONS */
.section {
    padding: 100px 0;
    background: var(--surface);
}

.section.alt {
    background: var(--surface-alt);
}

h2 {
    margin-bottom: 30px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
    transition: transform 0.4s ease;
}

/*hide service card img on smaller viewports*/
@media (max-width: 992px) {
    .service-img {
        display: none;
    }
}

.service-card:hover {
    border-color: white;
    transform: translateY(-5px);
}

/* CTA */
.cta {
    background: #0b3d2e;
}

.cta h2 {
    color: white;
}

/* FOOTER */
.footer {
    background: black;
    padding: 60px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo {
    height: 40px;
    margin-bottom: 10px;
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

#footer-links{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2em 0 0.5em;
}

#footer-links a {
    padding: 0 4em;
}

.contact-link {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  /* Canada phone (gold theme) */
  .phone-link {
    color: var(--text);
  }
  
  .phone-link:hover {
    color: #fff;
    text-decoration: underline;
  }
  
  /* WhatsApp (green + interactive) */
  .whatsapp-link {
    color: #25D366;
  }
  
  .whatsapp-link:hover {
    color: #1ebe5d;
    transform: translateY(-1px);
  }
  
  .whatsapp-link i {
    margin-left: 6px;
  }

/* RESPONSIVE */
@media(max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media(max-width: 730px) {
    .footer-inner {
        display: flex;
        flex-direction: column;
    }
    .footer-inner div {
        margin-top: 8px;
    }
}

/* =========================
   MOBILE NAV (FIXED)
========================= */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(14, 17, 20, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    position: relative;
}

.brand-link {
    display: inline-flex;
    align-items: center;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    color: var(--muted);
    font-size: 0.95rem;
}

.desktop-nav a:hover {
    color: var(--text);
}

.hamburger {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
    transition: transform 0.28s ease, opacity 0.2s ease, background 0.2s ease;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 999;
    padding: 14px 0;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu a:first-child {
    border-top: 0;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* X transition */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
    }
}

@media (min-width: 993px) {
    .mobile-menu {
        display: none !important;
    }
}

/* =========================
     RESPONSIVE BEHAVIOR
  ========================= */

@media (max-width: 992px) {

    .desktop-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-inner {
        display: flex;
        align-items: center;
    }
}

/* when back to desktop */
@media (min-width: 993px) {

    .mobile-menu {
        display: none !important;
    }
}

/* =========================
   PROCESS PAGE
========================= */

.process-hero {
    padding: 60px 0;
    /* tighter, no full-height feel */
    background: var(--dark);
    /* blends into nav */
    border-bottom: 4px solid var(--accent);
    border-top: 2px solid var(--accent);
    max-height: 40vh;
}

.process-hero .container {
    max-width: 700px;
}

.process-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.process-hero p {
    color: var(--muted);
    font-size: 1rem;
}

/* CONTAINER */
.process-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* CENTER TIMELINE LINE */
.process-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: var(--accent);
    transform: translateX(-50%);
}

/* ROW */
.process-row {
    position: relative;
    display: flex;
}

/* DOT */
.process-row::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px var(--accent-soft);
    z-index: 2;
}

/* CARD */
.process-card {
    max-width: 520px;
    padding: 40px;
    background: var(--surface-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    transition: 0.3s ease;
}

/* LEFT / RIGHT ALIGNMENT */
.process-card.left {
    margin-right: auto;
    margin-left: 0;
}

.process-card.right {
    margin-left: auto;
    margin-right: 0;
}

/* CONNECTOR LINE FROM DOT TO CARD */
.process-card.left::before,
.process-card.right::before {
    content: "";
    position: absolute;
    top: 26px;
    width: 40px;
    height: 1px;
    background: var(--line);
}

.process-card.left::before {
    right: -40px;
}

.process-card.right::before {
    left: -40px;
}

/* TYPOGRAPHY */
.process-step {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-bottom: 10px;
}

.process-card h3 {
    margin-bottom: 12px;
}

.process-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* HOVER */
.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   TIMELINE ANIMATION
========================= */

/* line starts hidden */
.process-container::before {
  height: 0;
  transition: height 1s ease;
}

/* when active, line grows */
.process-container.active::before {
  height: 100%;
}

/* dots animation */
.process-row::before {
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: all 0.4s ease;
}

/* visible state */
.process-row.active::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* =========================
     RESPONSIVE
  ========================= */

@media (max-width: 900px) {

    /* remove center line */
    .process-container::before {
        display: none;
    }

    /* remove dots */
    .process-row::before {
        display: none;
    }

    /* remove connectors */
    .process-card::before {
        display: none;
    }

    .process-row {
        justify-content: center;
    }

    .process-card.left,
    .process-card.right {
        margin: 0;
        width: 100%;
    }

    .process-container {
        gap: 40px;
    }
}

/* =========================
   CONTACT FORM
========================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
  }
  
  /* Two-column row (desktop) */
  .form-row {
    display: flex;
    gap: 20px;
    width: 100%;
  }
  
  /* Inputs */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
  }
  
  /* Focus state (more polished) */
  .contact-form input:focus,
  .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
  }
  
  /* Textarea */
  .contact-form textarea {
    min-height: 160px;
    resize: vertical;
  }
  
  /* Button */
  .btn-contact {
    color: white;
    border: 1px solid var(--accent);
    border-radius: 40px;
    padding: 14px 24px;
    background-color: var(--dark);
    width: fit-content;
    transition: all 0.25s ease;
  }
  
  /* Button hover */
  .btn-contact:hover {
    background-color: var(--muted);
    transform: translateY(-1px);
    cursor: pointer;
  }
  
  /* =========================
     MOBILE OPTIMIZATION
  ========================= */
  
  @media (max-width: 768px) {
  
    /* Stack first + last name */
    .form-row {
      flex-direction: column;
      gap: 14px;
    }

    .form-row, input, textarea {
        max-width: 90%;
    }
  
    /* Prevent iOS zoom + improve tap UX */
    .contact-form input,
    .contact-form textarea {
      font-size: 16px;
      padding: 14px;
    }
  
    /* Full-width button */
    .btn-contact {
      align-self: center;
      width: 90%;
      text-align: center;
    }
  }