/* services.css */

body {
    background-color: #F8F8F8;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
    padding: 60px 60px 0;
    max-width: 1440px;
    margin: 0 auto;
    align-items: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-overlay {
    position: relative;
}

.hero-headline {
    font-family: var(--secondary-font);
    font-weight: 900;
    font-size: clamp(72px, 9vw, 120px);
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 10px;
    text-align: center;
}

.hero-headline .text {
    overflow: hidden;
    display: inline-block;
}

.hero-headline .gold {
    background-image: linear-gradient(to left, #A16C16, #E6B554);
    background-clip: text;
    color: transparent;
}

.hero-headline > div {
    display: flex;
    gap: 20px;
}

.hero-pill {
    background: #fff;
    border-radius: 16px;
    margin: 0 6px;
    height: 100px;
    width: fit-content;
    overflow: hidden;
}

.hero-pill img {
    object-fit: cover;
    width: 150px;
}

.hero-badge {
    border-radius: 16px;
    padding: 4px 10px;
    gap: 6px;
    background: #fff;
    margin: 0 6px;
    height: 99px;
    overflow: hidden;
    width: 200px;
}

.hero-badge-company-images {
    display: flex;
    position: relative;
}

.hero-badge-company-images .img {
    object-fit: contain;
    position: absolute;
    right: -150px;
    width: 150px;
}

.hero-badge-company-images .c-image-1 {
    margin-top: 25px;
}

.hero-sub {
    font-size: clamp(0.8rem, 4vw, 1.25rem);
    color: #8D8D8D;
    letter-spacing: 0.05em;
    text-align: center;
    margin: 16px 0 32px;
    font-weight: 500;
    width: 60%;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    margin-bottom: 50px;
}

.hero-ctas .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #A16C16, #E6B554);
    border: 2px solid #A16C16;
    color: #fff;
    padding: 10px 14px 10px 34px;
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 55px;
    transition: all .2s;
    height: fit-content;
}

.hero-ctas .btn-primary:hover {
    background: var(--text-primary);
    color: var(--white);
    border-color: #000;
}

.hero-ctas .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #A16C16;
    color: #000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all .2s;
    background: transparent;
    padding: 10px 14px 10px 34px;
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    font-weight: 700;
    border-radius: 55px;
    height: fit-content;
}

.hero-ctas .btn-outline:hover {
    background: linear-gradient(45deg, #A16C16, #E6B554);
    color: var(--white);
}

.hero-ctas .btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 7px;
    background-color: #fff;
}

.hero-ctas .btn-icon img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-ctas .btn-primary:hover .btn-icon {
    background: var(--white);
    color: var(--text-primary);
}

/* ─────────────────────────────────────────
   SHARED SECTION LAYOUT
───────────────────────────────────────── */

.section-full {
    padding: 80px 100px;
}

.services-section {
    padding: 80px 100px 100px 100px;
}

.section-full-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 50px;
}

.section-title {
    max-width: 34%;
    text-align: left;
    font-family: var(--secondary-font);
    font-size: clamp(0.9rem, 5vw, 2.5rem);
    background: var(--golden-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    line-height: 1.7;
    font-weight: 500;
    text-transform: uppercase;
}

.section-desc {
    font-family: var(--primary-font);
    font-size: clamp(42px, 5vw, 2.7rem);
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 600;
    width: 90%;
    z-index: 100;
    letter-spacing: -1px;
}

/* ─────────────────────────────────────────
   SERVICE CARDS
───────────────────────────────────────── */

.service-card {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 100;
}

.service-card div.col1 {
    width: 55%;
    align-items: flex-end;
    justify-content: center;
    display: flex;
    flex-direction: column;
}


/* ─────────────────────────────────────────
   Service Image Stack
───────────────────────────────────────── */

.service-card .col2 {
  position: relative;
  width: 45%;
  height: 400px;          /* give the container a fixed height */
  flex-shrink: 0;
}

.service-card .col2 .service-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card .col2 img {
    border-radius: 29px;
    border: 3px solid #fff;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.25);
}

.service-title {
    font-size: clamp(0.8rem, 6vw, 5rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -2.4px;
    line-height: 1;
}

.service-title span {
    font-size: clamp(0.8rem, 6vw, 3.1rem);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: -2.4px;
}

.service-desc {
    font-size: clamp(0.8rem, 4vw, 1.25rem);
    color: #8D8D8D;
    letter-spacing: 0.05em;
    margin: 16px 0 12px;
    font-weight: 400;
    line-height: 1.6;
}

.service-titles,
.service-descs {
    position: relative;
    overflow: hidden;
}

.service-title,
.service-desc {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

/* first items are the ones visible on load, so keep them in flow */
.service-title-1,
.service-desc-1 {
    position: relative;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: clamp(0.7rem, 5vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: transparent;
    background: var(--golden-gradient);
    background-clip: text;
}

.service-link:hover {
    color: var(--text-primary);
}

.section-desc {
  overflow: hidden; /* remove if you don't want clipping between lines */
}

.section-desc .line {
  display: block;
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 900px) {
    .hero {
        padding: 40px 20px 0;
    }

    .section-full {
        padding: 60px 20px;
    }

    .services-section {
        padding: 0px 60px 20px 60px;
    }
}


/* ============================================================
   SERVICES RESPONSIVE STYLES
   Breakpoints: 360, 390, 410, 430 (mobile portrait),
                768 landscape, tablet portrait (769–1024),
                tablet landscape (1025–1200)
   Link AFTER services.css to override defaults.

   NOTE: The services section uses GSAP ScrollTrigger pinning
   with snap scroll. On mobile the snap/pin is disabled via JS
   (add a check: if window.innerWidth <= 768 skip those triggers).
   The CSS below stacks the service card layout for small screens.
   ============================================================ */


/* ──────────────────────────────────────────────────────────────
   TABLET LANDSCAPE  (1025px – 1200px)
   ────────────────────────────────────────────────────────────── */
@media screen and (min-width: 1025px) and (max-width: 1200px) {

  /* Animating logo */
  .animating-logo { width: 38% !important; }

  /* Hero */
  .hero { padding: 48px 48px 0; }
  .hero-headline { font-size: clamp(60px, 7.5vw, 96px); }
  .hero-pill { height: 86px; }
  .hero-pill img { width: 130px; }
  .hero-badge { height: 86px; width: 180px; }
  .hero-sub { font-size: 1.1rem; width: 62%; }
  .hero-ctas .btn-icon { width: 38px; height: 38px; }

  /* Who We Are */
  .section-full { padding: 70px 80px; }
  .section-desc { font-size: clamp(32px, 4vw, 2.2rem); }

  /* Services */
  .services-section { padding: 70px 80px 90px; }
  .service-title { font-size: clamp(0.8rem, 5.5vw, 4.2rem); letter-spacing: -2px; }
  .service-title span { font-size: clamp(0.8rem, 5.5vw, 2.6rem); }
  .service-card .col2 { height: 360px; }
}


/* ──────────────────────────────────────────────────────────────
   TABLET PORTRAIT  (769px – 1024px)
   ────────────────────────────────────────────────────────────── */
@media screen and (min-width: 769px) and (max-width: 1024px) {

  /* Animating logo */
  .animating-logo { width: 50% !important; }

  /* Hero */
  .hero { padding: 36px 36px 0; }
  .hero-headline { font-size: clamp(48px, 7vw, 76px); gap: 6px 10px; }
  .hero-pill { height: 76px; }
  .hero-pill img { width: 110px; }
  .hero-badge { height: 76px; width: 160px; }
  .hero-sub { font-size: 1rem; width: 72%; margin: 12px 0 24px; }
  .hero-ctas { gap: 10px; margin-bottom: 36px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { font-size: 0.85rem; padding: 9px 12px 9px 24px; }
  .hero-ctas .btn-icon { width: 36px; height: 36px; }

  /* Who We Are */
  .section-full { padding: 60px 52px; }
  .section-title { font-size: clamp(0.85rem, 4vw, 1.8rem); max-width: 40%; }
  .section-desc { font-size: clamp(26px, 3.8vw, 1.9rem); letter-spacing: -0.5px; }
  .section-content-container { overflow: hidden; }

  /* Services — keep side-by-side but smaller */
  .services-section { padding: 60px 52px 72px; }
  .service-card { gap: 16px; }
  .service-card div.col1 { width: 52%; }
  .service-card .col2 { width: 48%; height: 320px; }
  .service-title { font-size: clamp(0.8rem, 5vw, 3.4rem); letter-spacing: -1.5px; }
  .service-title span { font-size: clamp(0.8rem, 5vw, 2.2rem); }
  .service-desc { font-size: 0.92rem; }
  .service-link { font-size: 0.9rem; }
}


/* ──────────────────────────────────────────────────────────────
   SHARED MOBILE BASE  (≤ 430px)
   Stacks the service card to full-width column layout.
   GSAP pin/snap should be disabled in JS at this width.
   ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 430px) {

  /* Animating logo */
  .animating-logo { display: none !important; }

  /* Hero */
  .section-container { border-radius: 14px; margin: 0 6px; }
  .hero { padding: 18px 14px 0; }
  .hero-headline {
    font-size: clamp(32px, 9.5vw, 48px);
    line-height: 0.9;
    gap: 4px 8px;
    margin-bottom: 8px;
  }
  .hero-headline > div { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .hero-pill { height: 54px; border-radius: 10px; margin: 0 3px; }
  .hero-pill img { width: 78px; }
  .hero-badge { height: 54px; width: 110px; border-radius: 10px; margin: 0 3px; }
  .hero-sub { font-size: 0.68rem; width: 90%; line-height: 1.55; margin: 10px 0 18px; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    max-width: 260px;
    justify-content: space-between;
    padding: 9px 10px 9px 20px;
    font-size: 0.72rem;
  }
  .hero-ctas .btn-icon { width: 32px; height: 32px; }

  /* Who We Are */
  .section-full { padding: 36px 14px; }
  .section-header { flex-direction: column; gap: 14px; }
  .section-title { max-width: 100%; font-size: 0.95rem; }
  .section-desc { font-size: clamp(18px, 5.5vw, 26px); letter-spacing: -0.3px; line-height: 1.35; width: 100%; }
  .section-content-container { overflow: hidden; }

  /* Services — stacked layout */
  .services-section { padding: 36px 14px 48px; }
  .service-card {
    flex-direction: column;
    gap: 24px;
  }
  .service-card div.col1 {
    width: 100%;
    align-items: flex-start;
  }
  .service-card .col2 {
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
  }
  .service-card .col2 img { border-radius: 20px; }

  /* Un-stack the absolute service titles for mobile
     (show all as a vertical list since GSAP snap is disabled) */
  .service-title {
    font-size: clamp(22px, 7vw, 34px);
    letter-spacing: -1px;
    padding-top: 28px;
    border-top: 1px solid #E6E6E6;
    margin-top: 8px;
    line-height: 1;
  }
  .service-title:first-child { border-top: none; margin-top: 0; padding-top: 0; }
  .service-title span { font-size: clamp(16px, 5.5vw, 22px); letter-spacing: -0.5px; }
  .service-desc {
    font-size: 0.8rem;
    margin: 8px 0 4px;
    line-height: 1.6;
  }

  /* Show only the first image on mobile (others hidden by GSAP, override) */

  .service-link {
    font-size: 0.82rem;
    margin-top: 14px;
    display: inline-flex;
  }

}

/* ──────────────────────────────────────────────────────────────
   430px — iPhone 14 Plus / 15 Plus  (fine-tune on base)
   ────────────────────────────────────────────────────────────── */
@media screen and (min-width: 411px) and (max-width: 430px) {
  .hero-headline { font-size: clamp(34px, 9.5vw, 50px); }
  .hero-pill { height: 58px; }
  .hero-pill img { width: 84px; }
  .hero-badge { height: 58px; width: 118px; }
  .service-title { font-size: clamp(24px, 7vw, 36px); }
  .cta-dark h2 { font-size: 2.1rem; }
}


/* ──────────────────────────────────────────────────────────────
   410px — Pixel 7 / Galaxy S23
   ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 410px) {
  .hero-headline { font-size: clamp(30px, 9vw, 44px); }
  .hero-pill { height: 52px; }
  .hero-pill img { width: 74px; }
  .hero-badge { height: 52px; width: 104px; }
  .hero-sub { font-size: 0.65rem; }
  .section-desc { font-size: clamp(16px, 5vw, 22px); }
  .service-card .col2 { height: 200px; }
  .service-title { font-size: clamp(20px, 6.5vw, 30px); }
  .service-title span { font-size: clamp(14px, 5vw, 20px); }
  .service-desc { font-size: 0.76rem; }
}


/* ──────────────────────────────────────────────────────────────
   390px — iPhone 14/15 Pro
   ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 390px) {
  .contact-link { font-size: 0.62rem; }
  .hero { padding: 14px 10px 0; }
  .hero-headline { font-size: clamp(27px, 8.5vw, 40px); }
  .hero-pill { height: 48px; }
  .hero-pill img { width: 68px; }
  .hero-badge { height: 48px; width: 96px; }
  .hero-sub { font-size: 0.62rem; width: 92%; }
  .section-full { padding: 30px 12px; }
  .section-desc { font-size: clamp(15px, 4.8vw, 20px); }
  .services-section { padding: 28px 12px 40px; }
  .service-card .col2 { height: 190px; }
  .service-title { font-size: clamp(18px, 6vw, 28px); }
  .cta-dark { padding: 38px 14px 22px; }
  .cta-dark h2 { font-size: 1.75rem; }
  .cta-dark p { font-size: 0.72rem; }
  .cta-btns .btn-primary,
  .cta-btns .btn-outline { max-width: 250px; font-size: 0.68rem; padding: 8px 8px 8px 18px; }
  .cta-btns .btn-icon { width: 30px; height: 30px; }
}


/* ──────────────────────────────────────────────────────────────
   360px — Galaxy A / smallest phones
   ────────────────────────────────────────────────────────────── */
@media screen and (max-width: 360px) {
  .hero { padding: 10px 8px 0; }
  .hero-headline { font-size: clamp(24px, 8vw, 34px); gap: 3px 6px; }
  .hero-pill { height: 42px; border-radius: 8px; }
  .hero-pill img { width: 58px; }
  .hero-badge { height: 42px; width: 84px; border-radius: 8px; }
  .hero-sub { font-size: 0.58rem; width: 95%; line-height: 1.5; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { max-width: 230px; font-size: 0.64rem; padding: 7px 7px 7px 14px; }
  .hero-ctas .btn-icon { width: 28px; height: 28px; }
  .section-full { padding: 26px 10px; }
  .section-desc { font-size: clamp(13px, 4.5vw, 17px); }
  .services-section { padding: 24px 10px 36px; }
  .service-card .col2 { height: 175px; }
  .service-title { font-size: clamp(16px, 5.5vw, 24px); padding-top: 22px; }
  .service-title span { font-size: clamp(12px, 4.5vw, 18px); }
  .service-desc { font-size: 0.7rem; }
  .service-link { font-size: 0.74rem; }
}


/* ──────────────────────────────────────────────────────────────
   MOBILE LANDSCAPE  (rotated phone, height ≤ 500px)
   ────────────────────────────────────────────────────────────── */
@media screen and (orientation: landscape) and (max-width: 900px) and (max-height: 500px) {

  /* Animating logo — hide to save space */
  .animating-logo { display: none !important; }

  /* Hero — compact horizontal layout */
  .section-container { border-radius: 14px; margin: 0 6px; }
  .hero { padding: 20px 28px 0; }
  .hero-headline {
    font-size: clamp(38px, 5.5vw, 56px);
    line-height: 0.88;
    margin-bottom: 6px;
  }
  .hero-pill { height: 58px; }
  .hero-pill img { width: 84px; }
  .hero-badge { height: 58px; width: 120px; }
  .hero-sub { font-size: 0.72rem; width: 64%; margin: 8px 0 16px; }
  .hero-ctas { flex-direction: row; gap: 8px; margin-bottom: 20px; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { font-size: 0.68rem; padding: 7px 8px 7px 16px; }
  .hero-ctas .btn-icon { width: 28px; height: 28px; }

  /* Who We Are */
  .section-full { padding: 36px 36px; }
  .section-desc { font-size: clamp(20px, 3.5vw, 30px); }

  /* Services — side by side in landscape */
  .services-section { padding: 40px 36px 52px; }
  .service-card { flex-direction: row; gap: 20px; }
  .service-card div.col1 { width: 55%; align-items: flex-start; }
  .service-card .col2 { width: 45%; height: 280px; }

  /* Keep GSAP-driven titles/descs in their absolute layout for landscape */
  .service-titles,
  .service-descs { position: relative; overflow: hidden; }
  .service-title,
  .service-desc { position: absolute; }
  .service-title-1, .service-desc-1 { position: relative; }

  .service-image-2,
  .service-image-3,
  .service-image-4,
  .service-image-5,
  .service-image-6 { display: block; } /* re-enable for GSAP control in landscape */

  .service-title { font-size: clamp(0.8rem, 4.5vw, 3rem); letter-spacing: -1.5px; }
  .service-title span { font-size: clamp(0.8rem, 4.5vw, 2rem); }
  .service-desc { font-size: 0.8rem; }
}

/* Add to services.css */

.service-links {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
}

/* All links are absolute (stacked), link-1 stays in flow */
.service-link {
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 0; /* override the old margin */
}

.service-link-1 {
    position: relative; /* keeps the container sized */
}