/* ==========================================================================
   Design Concepts Int. — Main CSS
   Global styles, typography, CSS custom properties, layout
   ========================================================================== */

/* ─── CSS Custom Properties ─────────────────────────────────────────────── */
:root {
    --gold:       #B8935A;
    --gold-dark:  #9a7a48;
    --charcoal:   #1C1C1C;
    --warm-white: #F7F4EF;
    --text-dark:  #1C1C1C;
    --text-mid:   #6A6A6A;
    --border:     #D8D2C8;
    --wa-green:   #25D366;
    --wa-hover:   #1da851;
    --white:      #FFFFFF;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

    --max-width:  1280px;
    --pad-x:      56px;
    --pad-y:      80px;
    --gap:        16px;

    --nav-height:     80px;
    --nav-height-sm:  64px;

    --transition: 0.3s ease;
    --shadow-sm:  0 2px 8px rgba(28, 28, 28, 0.08);
    --shadow-md:  0 4px 24px rgba(28, 28, 28, 0.12);
}

/* ─── Reset / Base ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family:      var(--font-sans);
    font-size:        1rem;
    font-weight:      400;
    line-height:      1.75;
    color:            var(--text-dark);
    background-color: var(--warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family:  var(--font-serif);
    font-weight:  300;
    line-height:  1.1;
    color:        var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    color:       var(--text-mid);
    line-height: 1.75;
    max-width:   68ch;
}

a {
    color:           var(--gold);
    text-decoration: none;
    transition:      color var(--transition);
}

a:hover {
    color: var(--gold-dark);
}

a:focus-visible {
    outline:        2px solid var(--gold);
    outline-offset: 3px;
}

strong, b {
    font-weight: 500;
    color:       var(--text-dark);
}

img, video {
    max-width: 100%;
    height:    auto;
    display:   block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: var(--font-sans);
    font-size:   1rem;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* ─── Eyebrow Label ──────────────────────────────────────────────────────── */
.eyebrow {
    display:        block;
    font-family:    var(--font-sans);
    font-size:      0.75rem;
    font-weight:    500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:          var(--gold);
    margin-bottom:  1rem;
}

/* ─── Layout Utilities ───────────────────────────────────────────────────── */
.container {
    max-width:   var(--max-width);
    margin-left:  auto;
    margin-right: auto;
    padding-left:  var(--pad-x);
    padding-right: var(--pad-x);
}

.section {
    padding-top:    var(--pad-y);
    padding-bottom: var(--pad-y);
}

.section--dark {
    background-color: var(--charcoal);
    color:            rgba(255,255,255,0.55);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
    color: var(--white);
}

.section--gold {
    background-color: var(--gold);
}

.section--white {
    background-color: var(--white);
}

.grid {
    display:               grid;
    grid-template-columns: repeat(12, 1fr);
    gap:                   var(--gap);
}

.flex {
    display:         flex;
    flex-wrap:       wrap;
    gap:             var(--gap);
    align-items:     center;
}

.flex--center {
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
}

/* ─── Section Title Block ────────────────────────────────────────────────── */
.section-title {
    margin-bottom: 3rem;
}

.section-title__heading {
    margin-bottom: 1rem;
}

.section-title__sub {
    font-size:  1.1rem;
    max-width:  60ch;
    color:      var(--text-mid);
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
}

/* ─── Placeholder / Skeleton image ──────────────────────────────────────── */
.img-placeholder {
    background-color: var(--border);
    width:            100%;
    height:           100%;
    min-height:       240px;
    display:          block;
    position:         relative;
}

.img-placeholder::after {
    content:    '';
    position:   absolute;
    inset:      0;
    background: linear-gradient(135deg, rgba(184,147,90,0.15) 0%, transparent 60%);
}

/* ─── Hero Base ──────────────────────────────────────────────────────────── */
.hero {
    position:        relative;
    display:         flex;
    align-items:     center;
    overflow:        hidden;
    background-color: #C4BAB0;
}

.hero--full { min-height: 100vh; }
.hero--half { min-height: 55vh; }
.hero--short { min-height: 40vh; }

.hero__bg {
    position:   absolute;
    inset:      0;
    object-fit: cover;
    width:      100%;
    height:     100%;
    z-index:    0;
}

.hero__overlay {
    position:         absolute;
    inset:            0;
    background-color: rgba(28, 28, 28, 0.55);
    z-index:          1;
}

.hero__content {
    position:  relative;
    z-index:   2;
    width:     100%;
    padding:   calc(var(--nav-height) + 48px) var(--pad-x) 80px;
}

.hero__content--center {
    text-align: center;
}

.hero h1,
.hero h2 {
    color:        var(--white);
    margin-bottom: 1.5rem;
}

.hero p {
    color:        rgba(255,255,255,0.85);
    font-size:    1.15rem;
    max-width:    60ch;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display:     flex;
    flex-wrap:   wrap;
    gap:         1rem;
    align-items: center;
}

.hero__trust {
    position:    absolute;
    bottom:      40px;
    right:       var(--pad-x);
    z-index:     2;
    text-align:  right;
    color:       rgba(255,255,255,0.5);
    font-family: var(--font-serif);
    font-size:   clamp(3rem, 6vw, 6rem);
    font-weight: 300;
    line-height: 1;
    pointer-events: none;
}

.hero__trust strong {
    display:    block;
    color:      var(--gold);
    font-size:  clamp(0.75rem, 1.5vw, 1rem);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
    padding:   1rem var(--pad-x);
    font-size: 0.8rem;
    color:     var(--text-mid);
    border-bottom: 1px solid var(--border);
}

.breadcrumb a {
    color: var(--text-mid);
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* Yoast breadcrumb overrides */
.breadcrumb span.breadcrumb_last {
    color: var(--text-dark);
}

/* ─── Metrics Bar ────────────────────────────────────────────────────────── */
.metrics-bar {
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:    var(--white);
}

.metrics-bar__inner {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
}

.metric {
    padding:     2.5rem var(--pad-x);
    border-right: 1px solid var(--border);
    text-align:  center;
}

.metric:last-child { border-right: none; }

.metric__number {
    font-family:  var(--font-serif);
    font-size:    clamp(2.5rem, 4vw, 4rem);
    font-weight:  300;
    color:        var(--gold);
    line-height:  1;
    display:      block;
}

.metric__label {
    font-size:      0.8rem;
    font-weight:    500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--text-mid);
    display:        block;
    margin-top:     0.5rem;
}

/* ─── Services Grid ──────────────────────────────────────────────────────── */
.services-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   1px;
    background-color:      var(--border);
    border:                1px solid var(--border);
}

/* ─── Featured Projects Grid ─────────────────────────────────────────────── */
.projects-featured {
    display: grid;
    grid-template-columns: 7fr 5fr;
    grid-template-rows: auto auto;
    gap: var(--gap);
}

.projects-featured__main {
    grid-row: 1 / 3;
}

/* ─── Client Bar ─────────────────────────────────────────────────────────── */
.client-bar {
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding:       2.5rem var(--pad-x);
    background:    var(--white);
}

.client-bar__label {
    font-size:      0.75rem;
    font-weight:    500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color:          var(--text-mid);
    text-align:     center;
    margin-bottom:  2rem;
}

.client-bar__logos {
    display:         flex;
    flex-wrap:       wrap;
    gap:             1rem;
    justify-content: center;
    align-items:     center;
}

.client-logo {
    padding:          0.625rem 1.5rem;
    border:           1px solid var(--border);
    font-size:        0.75rem;
    font-weight:      500;
    letter-spacing:   0.08em;
    text-transform:   uppercase;
    color:            var(--text-mid);
    background-color: var(--white);
    white-space:      nowrap;
}

/* ─── Testimonial Section ────────────────────────────────────────────────── */
.testimonial-section {
    background-color: var(--gold);
    padding:          var(--pad-y) var(--pad-x);
    text-align:       center;
}

.testimonial-section__quote-mark {
    font-family:  var(--font-serif);
    font-size:    8rem;
    line-height:  0.5;
    color:        rgba(255,255,255,0.25);
    margin-bottom: 1rem;
    display:      block;
    font-weight:  300;
}

.testimonial-section__text {
    font-family:   var(--font-serif);
    font-size:     clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight:   300;
    color:         var(--white);
    max-width:     70ch;
    margin:        0 auto 1.5rem;
    line-height:   1.5;
}

.testimonial-section__attribution {
    font-size:      0.8rem;
    font-weight:    500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          rgba(255,255,255,0.7);
}

/* ─── Dark CTA Band ──────────────────────────────────────────────────────── */
.cta-band {
    background-color: var(--charcoal);
    padding:          var(--pad-y) 0;
}

.cta-band__inner {
    display:         flex;
    align-items:     center;
    justify-content: space-between;
    gap:             2rem;
    flex-wrap:       wrap;
}

.cta-band__heading {
    font-family:  var(--font-serif);
    font-size:    clamp(1.5rem, 3vw, 2.5rem);
    color:        var(--white);
    font-weight:  300;
    margin-bottom: 0.5rem;
}

.cta-band__sub {
    color: rgba(255,255,255,0.55);
    max-width: 50ch;
}

.cta-band__actions {
    display:     flex;
    flex-wrap:   wrap;
    gap:         1rem;
    align-items: center;
    flex-shrink: 0;
}

/* ─── Locations Section ──────────────────────────────────────────────────── */
.locations-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:     0;
    min-height: 480px;
}

.locations-map {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border: none;
}

.locations-list {
    padding: var(--pad-y) var(--pad-x);
    background: var(--white);
    border-left: 1px solid var(--border);
}

.location-item {
    padding-bottom:  1.5rem;
    margin-bottom:   1.5rem;
    border-bottom:   1px solid var(--border);
}

.location-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.location-item__city {
    font-family:  var(--font-serif);
    font-size:    1.25rem;
    color:        var(--text-dark);
    font-weight:  400;
    display:      block;
    margin-bottom: 0.25rem;
}

.location-item__city a {
    color: var(--text-dark);
}

.location-item__city a:hover {
    color: var(--gold);
}

.location-item__address,
.location-item__phone {
    font-size: 0.875rem;
    color:     var(--text-mid);
    line-height: 1.5;
    max-width: none;
}

.location-item__phone a {
    color: var(--text-mid);
}

/* ─── Blog Cards ─────────────────────────────────────────────────────────── */
.blog-grid {
    display:               grid;
    grid-template-columns: repeat(3, 1fr);
    gap:                   var(--gap);
}

/* ─── Accessibility & Focus ──────────────────────────────────────────────── */
.sr-only {
    position:   absolute;
    width:      1px;
    height:     1px;
    padding:    0;
    margin:     -1px;
    overflow:   hidden;
    clip:       rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ─── Scroll popup ───────────────────────────────────────────────────────── */
.scroll-popup {
    position:         fixed;
    bottom:           24px;
    right:            24px;
    z-index:          8888;
    width:            320px;
    background:       var(--white);
    border:           1px solid var(--border);
    box-shadow:       var(--shadow-md);
    padding:          1.5rem;
    transform:        translateY(200%);
    opacity:          0;
    transition:       transform 0.4s ease, opacity 0.4s ease;
    pointer-events:   none;
}

.scroll-popup.is-visible {
    transform:      translateY(0);
    opacity:        1;
    pointer-events: auto;
}

.scroll-popup__close {
    position:   absolute;
    top:        12px;
    right:      12px;
    background: transparent;
    border:     none;
    cursor:     pointer;
    color:      var(--text-mid);
    font-size:  1.25rem;
    line-height: 1;
    padding:    4px;
}

.scroll-popup__heading {
    font-family:  var(--font-serif);
    font-size:    1.25rem;
    color:        var(--text-dark);
    margin-bottom: 0.5rem;
}

.scroll-popup__form {
    display:        flex;
    flex-direction: column;
    gap:            0.75rem;
    margin-top:     1rem;
}

/* ─── Process Steps ──────────────────────────────────────────────────────── */
.process-steps {
    display:     flex;
    gap:         0;
    overflow-x:  auto;
    border:      1px solid var(--border);
}

.process-step {
    flex:        1;
    padding:     2rem 1.5rem;
    border-right: 1px solid var(--border);
    min-width:   180px;
}

.process-step:last-child {
    border-right: none;
}

.process-step__number {
    font-family:   var(--font-serif);
    font-size:     3rem;
    font-weight:   300;
    color:         var(--gold);
    display:       block;
    margin-bottom: 0.5rem;
    line-height:   1;
}

.process-step__title {
    font-size:     0.875rem;
    font-weight:   500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color:          var(--text-dark);
    margin-bottom:  0.5rem;
}

.process-step__desc {
    font-size:  0.8rem;
    color:      var(--text-mid);
    max-width:  none;
}

/* ─── Value Cards ────────────────────────────────────────────────────────── */
.value-cards {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   var(--gap);
    margin-top:            3rem;
}

.value-card {
    padding:    2rem;
    border:     1px solid var(--border);
    text-align: center;
}

.value-card__number {
    font-family:  var(--font-serif);
    font-size:    3rem;
    font-weight:  300;
    color:        var(--gold);
    display:      block;
    margin-bottom: 0.5rem;
}

.value-card__label {
    font-size:      0.8rem;
    font-weight:    500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color:          var(--text-mid);
}

/* ─── Team Grid ──────────────────────────────────────────────────────────── */
.team-grid {
    display:               grid;
    grid-template-columns: repeat(4, 1fr);
    gap:                   var(--gap);
}

/* ─── Two Column Layout ──────────────────────────────────────────────────── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.two-col--reversed {
    grid-template-columns: 360px 1fr;
}

/* ─── Content Prose ──────────────────────────────────────────────────────── */
.prose h2 { margin-top: 2.5rem; margin-bottom: 1rem; font-size: 1.75rem; }
.prose h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p  { margin-bottom: 1.25rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose ul li { margin-bottom: 0.5rem; color: var(--text-mid); }
.prose strong { color: var(--text-dark); }
