/* 
   ========================================
   STERLING & STONE ARCHITECTS STYLESHEET
   ======================================== 
*/

:root {
    /* Color Palette: Terracotta & Corporate Neutrals */
    --tc-primary: #C85A32;
    --tc-dark: #9A4222;
    --tc-light: #EBBCA9;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --off-white: #F9F6F0;
    --pure-white: #FFFFFF;
    --border-subtle: #E0DCD3;
    
    /* Typography: Elegant Serif */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Lora', serif;

    /* Rhythm & Scaling */
    --sp-xs: 0.5rem;
    --sp-sm: 1.2rem;
    --sp-md: 2.5rem;
    --sp-lg: 5rem;
    --sp-xl: 8rem;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--off-white);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--charcoal);
    line-height: 1.2;
    font-weight: 600;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

a {
    color: var(--tc-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* BUTTONS */
.btn-terracotta-solid {
    display: inline-block;
    background-color: var(--tc-primary);
    color: var(--pure-white) !important;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    border: 1px solid var(--tc-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-terracotta-solid:hover {
    background-color: var(--tc-dark);
    border-color: var(--tc-dark);
}

.btn-terracotta-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--tc-primary) !important;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 600;
    border: 1px solid var(--tc-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-terracotta-outline:hover {
    background-color: var(--tc-primary);
    color: var(--pure-white) !important;
}

.full-width {
    width: 100%;
}

/* HEADER (STICKY) */
.arch-nav-bar {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(249, 246, 240, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav-interior-wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-monogram a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 2px;
}

.brand-monogram span {
    color: var(--tc-primary);
    font-style: italic;
}

.nav-link-cluster {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--charcoal);
}

.nav-item:hover {
    color: var(--tc-primary);
}

.secondary-nav {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

/* HERO (SPLIT LAYOUT) */
.split-hero-module {
    display: flex;
    min-height: 85vh;
    background-color: var(--pure-white);
}

.hero-text-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-lg) var(--sp-md);
    background-color: var(--off-white);
}

.hero-content-anchor {
    max-width: 600px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: var(--tc-primary);
    margin-bottom: var(--sp-sm);
    font-weight: 600;
}

.hero-headline {
    font-size: 3.5rem;
    margin-bottom: var(--sp-sm);
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--charcoal-light);
    margin-bottom: var(--sp-md);
}

.hero-action-row {
    display: flex;
    gap: 1rem;
    margin-bottom: var(--sp-md);
    flex-wrap: wrap;
}

.hero-metric-blurb {
    border-left: 3px solid var(--tc-primary);
    padding-left: 1rem;
    font-style: italic;
    color: var(--charcoal-light);
}

.hero-metric-blurb strong {
    color: var(--charcoal);
    font-size: 1.2rem;
}

.hero-visual-pane {
    flex: 1;
    position: relative;
}

.hero-visual-pane img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* COMMON SECTION STYLES */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--tc-primary);
    margin-top: 1rem;
}

/* SERVICES / PRACTICE AREAS */
.practice-areas-zone {
    padding: var(--sp-xl) var(--sp-md);
    max-width: 1400px;
    margin: 0 auto;
}

.zone-header {
    text-align: center;
    margin-bottom: var(--sp-lg);
}

.zone-header .section-title::after {
    margin: 1rem auto 0;
}

.section-lead {
    font-size: 1.25rem;
    color: var(--charcoal-light);
    max-width: 700px;
    margin: 0 auto;
}

.service-tabs-container {
    border: 1px solid var(--border-subtle);
    background-color: var(--pure-white);
}

.tab-controls {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    background-color: var(--off-white);
}

.tab-trigger {
    flex: 1;
    padding: 1.5rem 1rem;
    background: none;
    border: none;
    border-right: 1px solid var(--border-subtle);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-trigger:last-child {
    border-right: none;
}

.tab-trigger.active {
    background-color: var(--pure-white);
    color: var(--tc-primary);
    border-bottom: 3px solid var(--tc-primary);
}

.tab-content-panels {
    padding: var(--sp-md);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    align-items: center;
}

.panel-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.panel-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    font-weight: 600;
}

.benefit-list li::before {
    content: '■';
    color: var(--tc-primary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
    top: 3px;
}

.panel-image img {
    aspect-ratio: 4/3;
    border-radius: 2px;
}

/* ABOUT US */
.studio-narrative-ribbon {
    background-color: var(--charcoal);
    color: var(--off-white);
    padding: var(--sp-xl) 0;
}

.narrative-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    align-items: stretch;
}

.narrative-visual img {
    height: 100%;
    min-height: 500px;
}

.narrative-copy {
    padding: var(--sp-md) var(--sp-lg);
}

.narrative-copy .section-title {
    color: var(--pure-white);
}

.timeline-marker {
    color: var(--tc-light);
    font-family: var(--font-display);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.narrative-copy p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #D0D0D0;
}

.narrative-copy strong {
    color: var(--pure-white);
}

.inline-link {
    color: var(--tc-light);
    border-bottom: 1px dotted var(--tc-light);
}

.inline-link:hover {
    color: var(--pure-white);
    border-bottom-style: solid;
}

.accreditation-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--charcoal-light);
    padding-top: 1.5rem;
}

.accreditation-badges span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tc-light);
}

/* TESTIMONIALS */
.client-feedback-matrix {
    padding: var(--sp-xl) var(--sp-md);
    background-color: var(--pure-white);
    max-width: 1400px;
    margin: 0 auto;
}

.matrix-header {
    margin-bottom: var(--sp-lg);
}

.feedback-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}

.feedback-card {
    background-color: var(--off-white);
    padding: 2rem;
    border-top: 4px solid var(--tc-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.feedback-card:nth-child(even) {
    margin-top: 2rem;
}

.feedback-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.feedback-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feedback-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
}

.author-details strong {
    display: block;
    font-family: var(--font-display);
    color: var(--charcoal);
}

.author-details span {
    font-size: 0.85rem;
    color: var(--charcoal-light);
}

/* CONTACT */
.inquiry-terminal-area {
    padding: var(--sp-xl) var(--sp-md);
    background-color: var(--off-white);
    border-top: 1px solid var(--border-subtle);
}

.terminal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.terminal-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.noise-disclaimer {
    font-size: 0.85rem !important;
    color: var(--charcoal-light);
    font-style: italic;
}

.terminal-support-img {
    margin-top: 2rem;
    aspect-ratio: 16/9;
    border: 1px solid var(--border-subtle);
}

.terminal-form-wrapper {
    background-color: var(--pure-white);
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.arch-form .input-group {
    margin-bottom: 1.5rem;
}

.arch-form label {
    display: block;
    font-family: var(--font-display);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.arch-form input,
.arch-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-subtle);
    background-color: var(--off-white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.arch-form input:focus,
.arch-form textarea:focus {
    outline: none;
    border-color: var(--tc-primary);
}

/* FOOTER */
.arch-footer-base {
    background-color: var(--charcoal);
    color: var(--off-white);
    padding: var(--sp-lg) var(--sp-md) 2rem;
}

.footer-inner-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-contact-data p {
    margin-bottom: 0.5rem;
    color: #A0A0A0;
}

.footer-contact-data a {
    color: var(--tc-light);
}

.footer-legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-legal-links a {
    color: #A0A0A0;
}

.footer-legal-links a:hover {
    color: var(--pure-white);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid var(--charcoal-light);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: #A0A0A0;
}

/* RESPONSIVE LEAKAGE & ADJUSTMENTS */
@media (max-width: 1024px) {
    .split-hero-module {
        flex-direction: column;
    }
    .hero-visual-pane {
        min-height: 400px;
    }
    .hero-headline {
        font-size: 2.8rem;
    }
    .narrative-grid {
        grid-template-columns: 1fr;
    }
    .narrative-visual img {
        min-height: 300px;
    }
    .terminal-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-link-cluster {
        display: none; /* Simplification for mobile */
    }
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .tab-controls {
        flex-direction: column;
    }
    .tab-trigger {
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }
    .feedback-card:nth-child(even) {
        margin-top: 0;
    }
    .terminal-form-wrapper {
        padding: 1.5rem;
    }
}
