/* =========================================================
   NINE3 DESIGNS
   SERVICES & PRICING PAGE STYLES
   ---------------------------------------------------------
   Page-specific styles only. Header, footer, buttons and
   base typography come from the shared stylesheets.
   Load AFTER shared CSS so page rules win ties:
       variables > reset > base > layout > components >
       animations > responsive > services
========================================================= */


/* =========================================================
   PAGE TOKENS
   (new names only — never re-define site variables here)
========================================================= */

:root {
    /* deeper gold so tiny uppercase labels stay legible on cream */
    --accent-deep: #9C7836;
}


/* =========================================================
   SECTION LABEL
========================================================= */

.section-label {
    display: inline-block;

    color: var(--accent-deep);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   SERVICES HERO
========================================================= */

main section.services-hero {
    position: relative;

    padding: 140px 0 110px;

    background: linear-gradient(165deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--off-white);

    overflow: hidden;
}

main section.services-hero::before {
    content: "";

    position: absolute;
    top: -230px;
    right: -160px;

    width: 640px;
    height: 640px;

    border: 1px solid rgba(254, 249, 243, 0.09);
    border-radius: 50%;
}

main section.services-hero::after {
    content: "";

    position: absolute;
    left: -180px;
    bottom: -300px;

    width: 520px;
    height: 520px;

    border: 1px solid rgba(254, 249, 243, 0.05);
    border-radius: 50%;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

main section.services-hero .section-label {
    color: rgba(254, 249, 243, 0.6);
}

.services-hero h1 {
    max-width: 750px;

    margin: 30px 0 0;

    color: var(--white);

    font-size: clamp(3.4rem, 6.4vw, 6.2rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

.services-hero h1 span {
    color: var(--accent);
}

.services-hero .hero-copy {
    max-width: 540px;

    margin: 28px 0 0;

    color: rgba(254, 249, 243, 0.66);

    font-size: 1rem;
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    max-width: 720px;

    margin-top: 44px;
}

.hero-tag {
    padding: 10px 20px;

    border: 1px solid rgba(254, 249, 243, 0.2);
    border-radius: 999px;

    color: rgba(254, 249, 243, 0.75);

    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}


/* =========================================================
   INTRO / WHAT WE OFFER
========================================================= */

main section.services-intro {
    padding: 145px 0 135px;

    background: var(--cream);
}

.services-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);

    gap: 120px;

    align-items: end;
}

.services-intro-grid .section-label {
    margin-bottom: 28px;
}

.services-intro-grid h2 {
    margin: 0;

    color: var(--primary-dark);

    font-size: clamp(2.8rem, 4.6vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.services-intro-grid h2 span {
    color: var(--accent);
}

.services-intro-copy p {
    max-width: 470px;

    margin: 0;

    color: var(--text);

    font-size: 1rem;
    line-height: 1.85;
}

.intro-line {
    display: block;

    width: 70px;
    height: 2px;

    margin-top: 34px;

    background: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 80px;

    border-top: 1px solid var(--light-grey);
    border-bottom: 1px solid var(--light-grey);
}

.svc-card {
    margin: 0;
    padding: 46px 40px 42px;

    border-right: 1px solid var(--light-grey);

    transition: background .3s ease;
}

.svc-card:last-child {
    border-right: 0;
}

.svc-card:hover {
    background: var(--white);
}

.svc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.svc-num {
    color: var(--accent-deep);

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.svc-top i {
    color: var(--accent);

    font-size: 1.3rem;
}

.svc-card h3 {
    margin: 26px 0 14px;

    color: var(--primary-dark);

    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.svc-card p {
    margin: 0;

    color: var(--text);

    font-size: 0.92rem;
    line-height: 1.8;
}


/* =========================================================
   PRICING
========================================================= */

main section.pricing {
    padding: 45px 0;

    background: var(--off-white);
}

.pricing-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);

    gap: 120px;

    align-items: end;
}

.pricing-head .section-label {
    margin-bottom: 28px;
}

.pricing-head h2 {
    margin: 0;

    color: var(--primary-dark);

    font-size: clamp(2.8rem, 4.6vw, 4.6rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.91;
}

.pricing-head h2 span {
    color: var(--accent);
}

.pricing-head-copy p {
    max-width: 460px;

    margin: 0;

    color: var(--text);

    font-size: 1rem;
    line-height: 1.85;
}

.pricing-head-copy .pricing-small {
    display: block;

    max-width: 460px;

    margin-top: 18px;

    color: var(--text-light);

    font-size: 0.85rem;
    line-height: 1.7;
}

/* --- Tabs --------------------------------------------- */

.pricing-tabs {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 70px;
}

.pricing-tab {
    padding: 13px 24px;

    background: transparent;
    border: 1px solid rgba(64, 74, 59, 0.22);
    border-radius: 999px;

    color: var(--primary);

    font-family: var(--font-main);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.pricing-tab:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.pricing-tab.active {
    background: var(--primary-dark);
    border-color: var(--primary-dark);

    color: var(--off-white);
}

/* --- Panels & cards ------------------------------------ */

.pricing-panel {
    display: none;

    margin-top: 26px;
}

.pricing-panel.active {
    display: block;

    animation: panel-in .45s ease;
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

    gap: 18px;

    align-items: stretch;
}

.price-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 42px 36px 34px;

    background: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-sm);

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.price-card:hover {
    transform: translateY(-6px);

    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.price-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.popular-chip {
    position: absolute;
    top: -13px;
    right: 26px;

    padding: 6px 14px;

    background: var(--accent);
    border-radius: 999px;

    color: var(--primary-dark);

    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.plan-name {
    margin: 0;

    color: var(--primary-dark);

    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.plan-price {
    display: flex;
    align-items: baseline;

    gap: 7px;

    margin-top: 16px;
}

.plan-from {
    color: var(--text-light);

    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.plan-amount {
    color: var(--primary-dark);

    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.plan-features {
    margin: 24px 0 30px;
    padding: 24px 0 0;

    border-top: 1px solid var(--light-grey);

    list-style: none;
}

.plan-features li {
    display: flex;

    gap: 11px;

    color: var(--text);

    font-size: 0.88rem;
    line-height: 1.55;
}

.plan-features li + li {
    margin-top: 11px;
}

.plan-features li::before {
    content: "\2726";

    color: var(--accent);

    font-size: 0.7rem;
    line-height: 1.9;
}

.plan-features li strong {
    color: var(--primary-dark);
    font-weight: 600;
}

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

    gap: 8px;

    margin-top: auto;

    color: var(--accent-deep);

    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.plan-link span {
    transition: transform .25s ease;
}

.plan-link:hover span {
    transform: translateX(4px);
}

/* --- Bespoke rows -------------------------------------- */

.bespoke-list {
    margin-top: 10px;
}

.bespoke-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px minmax(0, 1.4fr) 40px;

    gap: 30px;

    align-items: center;

    padding: 30px 22px;

    border-top: 1px solid var(--light-grey);

    transition: background .25s ease;
}

.bespoke-row:last-child {
    border-bottom: 1px solid var(--light-grey);
}

.bespoke-row:hover {
    background: var(--white);
}

.bespoke-name {
    margin: 0;

    color: var(--primary-dark);

    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.bespoke-price {
    color: var(--accent-deep);

    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.bespoke-desc {
    margin: 0;

    color: var(--text);

    font-size: 0.9rem;
    line-height: 1.7;
}

.bespoke-arrow {
    color: var(--accent);

    font-size: 1rem;
    text-align: right;
}

/* --- One-offs ------------------------------------------- */

.oneoffs {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);

    gap: 60px;

    align-items: center;

    margin-top: 90px;
    padding: 46px 50px;

    background: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: var(--radius-md);
}

.oneoffs h3 {
    margin: 14px 0 0;

    color: var(--primary-dark);

    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.oneoffs .oneoffs-price {
    color: var(--accent);
}

.oneoffs-chips {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.oneoffs-chips li {
    padding: 10px 18px;

    border: 1px solid rgba(64, 74, 59, 0.22);
    border-radius: 999px;

    color: var(--primary);

    font-size: 0.78rem;
    font-weight: 600;
}

.oneoffs-chips li::before {
    content: "\2726";

    margin-right: 8px;

    color: var(--accent);
    font-size: 0.65rem;
}

/* --- Pricing footer note -------------------------------- */

.pricing-foot {
    display: flex;
    flex-wrap: wrap;

    gap: 30px;

    align-items: center;
    justify-content: space-between;

    margin-top: 70px;
    padding-top: 40px;
margin-bottom: 10px;
    border-top: 1px solid var(--light-grey);
}

.pricing-foot p {
    max-width: 620px;

    margin: 0;

    color: var(--text-light);

    font-size: 0.9rem;
    line-height: 1.8;
}

.pricing-foot strong {
    color: var(--primary-dark);
    font-weight: 600;
}

.pricing-foot .btn {
    white-space: nowrap;
}


/* =========================================================
   PROCESS (dark section)
========================================================= */

main section.process {
    padding: 25px 0 25px;

    background: var(--primary-dark);
    color: var(--off-white);
}

.process-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);

    gap: 50px;

    align-items: end;

    margin-bottom: 40px;
}

main section.process .section-label {
    color: rgba(254, 249, 243, 0.5);

    margin-bottom: 28px;
}

main section.process h2 {
    margin: 0;

    color: var(--white);

    font-size: clamp(2.9rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.06em;
    line-height: 0.92;
}

main section.process h2 span {
    color: var(--accent);
}

.process-head > p {
    max-width: 420px;

    margin: 0;

    color: rgba(254, 249, 243, 0.62);

    font-size: 0.92rem;
    line-height: 1.85;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 40px;
}


/* =========================================================
   CTA (gold panel)
========================================================= */

main section.services-cta {
    padding: 30px 0 100px;

    background: var(--cream);
}

.services-cta-inner {
    position: relative;

    padding: 110px 80px;

    background: var(--accent);

    border-radius: var(--radius-lg);

    overflow: hidden;
}

.services-cta-inner::after {
    content: "N3";

    position: absolute;
    right: 40px;
    bottom: -100px;

    color: rgba(51, 60, 48, 0.07);

    font-size: 18rem;
    font-weight: 800;
    letter-spacing: -0.1em;
    line-height: 1;
}

.services-cta .section-label {
    position: relative;
    z-index: 2;

    margin-bottom: 28px;

    color: rgba(51, 60, 48, 0.62);
}

.services-cta h2 {
    position: relative;
    z-index: 2;

    max-width: 900px;

    margin: 0 0 30px;

    color: var(--primary-dark);

    font-size: clamp(2.8rem, 5vw, 5.2rem);
    font-weight: 400;
    letter-spacing: -0.065em;
    line-height: 0.9;
}

.services-cta p {
    position: relative;
    z-index: 2;

    max-width: 470px;

    margin: 0 0 40px;

    color: rgba(51, 60, 48, 0.75);

    font-size: 0.9rem;
    line-height: 1.8;
}

.services-cta .btn {
    position: relative;
    z-index: 2;

    background: var(--primary-dark);
    color: var(--off-white);
}

.services-cta .btn:hover {
    box-shadow: var(--shadow-md);
}


/* =========================================================
   SCROLL REVEAL (activated by the inline page script)
========================================================= */

.svc-js .svc-reveal {
    opacity: 0;
    transform: translateY(26px);

    transition:
        opacity .7s ease,
        transform .7s ease;
}

.svc-js .svc-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    .svc-js .svc-reveal {
        opacity: 1;
        transform: none;

        transition: none;
    }

    .pricing-panel.active {
        animation: none;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .services-intro-grid,
    .pricing-head,
    .process-head {
        gap: 70px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .svc-card {
        padding: 38px 34px 36px;

        border-right: 0;
        border-bottom: 1px solid var(--light-grey);
    }

    .svc-card:last-child {
        border-bottom: 0;
    }

    .oneoffs {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 40px 38px;
    }

    .bespoke-row {
        grid-template-columns: minmax(0, 1fr) auto;

        gap: 8px 24px;
    }

    .bespoke-desc {
        grid-column: 1 / -1;
    }

    .bespoke-arrow {
        display: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    main section.services-hero {
        padding: 110px 0 85px;
    }

    .services-hero h1 {
        font-size: clamp(3.2rem, 13vw, 5.2rem);
    }

    .hero-tags {
        margin-top: 36px;
    }

    main section.services-intro {
        padding: 90px 0;
    }

    .services-intro-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .services-grid {
        margin-top: 60px;
    }

    main section.pricing {
        padding: 90px 0;
    }

    .pricing-head {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .pricing-tabs {
        margin-top: 50px;

        flex-wrap: nowrap;

        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

        padding-bottom: 6px;
    }

    .pricing-tab {
        white-space: nowrap;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .price-card {
        padding: 36px 28px 30px;
    }

    .bespoke-row {
        padding: 26px 16px;
    }

    .oneoffs {
        margin-top: 60px;
        padding: 34px 26px;
    }

    .pricing-foot {
        margin-top: 30px;
    }

    main section.process {
        padding: 30px 0;
    }


    main section.services-cta {
        padding: 10px 0 80px;
    }

    .services-cta-inner {
        padding: 80px 34px;
    }
}

/* Color & Theme Variables */
:root {
  --bg-color: #2e352b;
  --text-white: #ffffff;
  --text-gold: #c2ac82;
  --text-muted: #8e9587;
  --border-line: rgba(255, 255, 255, 0.15);
}

/* Base Layout */
.process {
  background-color: var(--bg-color);
  color: var(--text-white);
  padding: 80px 40px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styling */
.process-head {
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-head.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.process-head h2 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
}

.process-head h2 span {
  color: var(--text-gold);
}

/* Color & Theme Variables */
:root {
  --bg-color: #2e352b;
  --text-white: #ffffff;
  --text-gold: #c2ac82;
  --text-muted: #8e9587;
  --border-line: rgba(255, 255, 255, 0.15);
}

/* Base Layout */
.process {
  background-color: var(--bg-color);
  color: var(--text-white);
  padding: 30px 40px 80px; /* Changed top padding from 80px to 30px */
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styling */
.process-head {
    margin-bottom: 35px; /* Reduced gap before the steps from 60px to 25px */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.process-head.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 15px;
}

.process-head h2 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 0;
}

.process-head h2 span {
  color: var(--text-gold);
}

/* Grid Layout for Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* Individual Step Styling */
.process-step {
  position: relative;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(30px);
  /* Stagger animation based on custom property --step-index */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--step-index) * 0.2s);
}

/* Animated Top Line above each step */
.step-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background-color: var(--border-line);
  transition: width 0.8s ease;
  transition-delay: calc(var(--step-index) * 0.2s);
}

/* Triggered Visible State */
.process-steps.is-visible .process-step {
  opacity: 1;
  transform: translateY(0);
}

.process-steps.is-visible .step-line {
  width: 100%;
}

/* Step Typography */
.step-number {
  color: var(--text-gold);
  font-size: 1rem;
  display: block;
  margin-bottom: 12px;
}

.process-step h2 {
  font-size: 1.25rem; /* Reduced from 2.5rem (try 1.25rem - 1.75rem depending on your preference) */
  font-weight: 400;  /* Optional: Adjust weight if you want it lighter or bolder */
  margin: 0 0 10px 0;
}

.process-step p {
  color: var(--text-gold);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}
/* 1. Eliminate top padding on the process section */
.process {
  padding-top: 0; /* Reduced from 30px/80px */
}

/

/* 3. Reduce bottom padding on the preceding section (e.g. .pricing) */
section:has(+ .process),
.pricing {
  padding-bottom: 20px; /* Adjust or set to 0 to pull them closer */
}

/* 4. Remove default top margin on the section label/header */
.process-head {
  margin-top: 0;
  padding-top: 0;
}

.section-label {
  margin-top: 0;
}
