/* 
 * CSS for Rest Assured Restored
 * Applying Brand Guidelines
 */

 :root {
    /* Brand Tokens */
    --navy:        #14476B;
    --navy-deep:   #0E3552;
    --navy-mid:    #1F5C85;
    --navy-tint:   #E6EDF2;
    --yellow:      #F3C41F;
    --yellow-soft: #FBE89E;
    --yellow-deep: #C99A07;

    /* Neutrals */
    --paper:    #FAF8F3;
    --bone:     #F2EEE5;
    --mist:     #E2DED4;
    --slate:    #5A6470;
    --slate-2:  #8A929C;
    --ink:      #14181D;
    --white:    #FFFFFF;
    
    /* Typography */
    --font-heading: 'Oswald', 'Arial Narrow', sans-serif;
    --font-body: 'Manrope', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    
    /* Layout */
    --max: clamp(1240px, 88vw, 1800px);
    --gutter: clamp(20px, 3.5vw, 80px);

    /* Effects */
    --transition: all 0.2s ease;
    --shadow-sm: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-md: 0 16px 32px -16px rgba(20,71,107,0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    line-height: 1.55;
    background-color: var(--paper);
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "ss01", "cv11";
    font-size: 16px;
    overflow-x: hidden;
}

::selection { 
    background: var(--yellow); 
    color: var(--navy-deep); 
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

p {
    margin-bottom: 1rem;
    color: var(--slate);
}

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

a:hover {
    color: var(--navy-deep);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.mb-4 { margin-bottom: 1.5rem; }

/* Stacking — sections sit above the fixed watermark; hero <header> is exempt */
section, footer {
    position: relative;
    z-index: 3;
}

/* Layout Utilities */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section-padding {
    padding: clamp(64px, 8vw, 180px) 0;
    border-top: 1px solid var(--mist);
}

.section-padding:first-of-type {
    border-top: 0;
}

.bg-paper {
    background-color: var(--paper);
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    padding: 14px 26px;
    border-radius: 3px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    line-height: 1;
}

.btn-primary {
    background: var(--navy);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary:hover { 
    background: var(--navy-deep); 
    transform: translateY(-2px);
}

.btn-cta {
    background: var(--yellow);
    color: var(--navy-deep);
}

.btn-cta:hover { 
    background: var(--yellow-deep); 
    color: var(--white); 
    transform: translateY(-2px);
}

.btn-ghost-dark {
    background: var(--navy-deep);
    color: var(--white);
    border-color: rgba(255,255,255,0.2);
}

.btn-ghost-dark:hover {
    background: var(--white);
    color: var(--navy-deep);
}

.btn-tertiary {
    background: transparent;
    color: var(--navy);
    padding: 12px 4px;
    font-size: 13px;
}

.btn-tertiary:hover { 
    color: var(--navy-deep); 
}

.btn-tertiary::after {
    content: "→"; 
    transition: transform .15s ease;
}

.btn-tertiary:hover::after { 
    transform: translateX(4px); 
}

.btn-lg {
    padding: 18px 34px;
    font-size: 16px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(250,248,243,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--mist);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 52px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    height: 44px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--slate);
    position: relative;
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-phone {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-deep);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 8px 4px;
    white-space: nowrap;
}

.nav-phone:hover {
    color: var(--navy-mid);
}

.nav-action .btn {
    font-size: 15px;
    padding: 13px 28px;
    letter-spacing: 0.05em;
}

.nav-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--navy-deep);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    border: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--paper);
}

.hero-bg {
    position: fixed;
    top: 50%;
    left: 28%;
    transform: translate(-50%, -50%);
    width: clamp(560px, 96vw, 1400px);
    height: clamp(560px, 96vw, 1400px);
    background-image: url('assets/logo_watermark.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 2;
    will-change: transform;
    pointer-events: none;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--gutter);
    margin-top: 4rem;
}

.hero-content h1 {
    font-size: clamp(56px, 9vw, 180px);
    line-height: 0.88;
    color: var(--navy-deep);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-content h1 .amp {
    color: var(--yellow-deep);
    font-weight: 500;
}

.hero-content p {
    color: var(--slate);
    font-size: clamp(16px, 1.4vw, 22px);
    max-width: clamp(600px, 40vw, 880px);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Section Header Typography */
.eyebrow {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.eyebrow::before {
    content: "";
    width: 24px; 
    height: 1px;
    background: currentColor;
}

.sec-head {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(24px, 5vw, 80px);
    align-items: end;
    margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-head .section-title {
    font-size: clamp(40px, 5.5vw, 112px);
    line-height: 0.95;
    margin: 0;
}

.sec-head p {
    font-size: clamp(16px, 1.3vw, 21px);
    margin: 0;
    max-width: 64ch;
    text-wrap: pretty;
}

@media (max-width: 760px) {
    .sec-head { grid-template-columns: 1fr; gap: 20px; }
}

/* Excellence Section */
.excellence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 5vw, 160px);
    align-items: start;
}

.excellence-grid .section-title {
    font-size: clamp(32px, 3.8vw, 76px);
}

.lead {
    font-family: var(--font-heading);
    font-size: clamp(22px, 2vw, 28px);
    color: var(--navy-deep);
    font-weight: 500;
    line-height: 1.2;
    text-transform: none;
    margin-bottom: 1.5rem;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-weight: 500;
    color: var(--ink);
    font-size: 15px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--yellow-deep);
    font-weight: bold;
    font-size: 1.1rem;
}

.excellence-image-wrapper {
    position: relative;
}

.excellence-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--navy-deep);
    color: var(--white);
    padding: 28px;
    border-radius: 6px;
    border-left: 4px solid var(--yellow);
}

.experience-badge .number {
    display: block;
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 8px;
}

.experience-badge .text {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(20px, 2vw, 48px);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.service-card .img-slot {
    aspect-ratio: 16/10;
    background: repeating-linear-gradient(135deg, var(--navy-tint) 0 12px, var(--bone) 12px 24px);
    display: grid; 
    place-items: center;
    position: relative;
}

.service-card .body {
    padding: clamp(24px, 2vw, 44px);
}

.service-card .cat {
    font-family: var(--font-mono); 
    font-size: 10.5px;
    text-transform: uppercase; 
    letter-spacing: 0.1em;
    color: var(--yellow-deep);
}

.service-card h3 {
    font-size: clamp(22px, 1.8vw, 34px);
    line-height: 1; 
    margin: 8px 0 10px;
    letter-spacing: 0.005em;
}

.service-card p { 
    margin: 0 0 16px; 
    font-size: 14px; 
}

.service-card .meta {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    border-top: 1px solid var(--mist); 
    padding-top: 14px;
    font-family: var(--font-mono); 
    font-size: 11px; 
    color: var(--slate-2);
    letter-spacing: 0.04em;
}

/* Testimonials */
.testimonials {
    background-image: linear-gradient(rgba(14,53,82, 0.88), rgba(14,53,82, 0.88)), url('assets/hero_bg.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.testimonials .sec-head .section-title {
    color: var(--white);
}

.testimonials .sec-head p {
    color: var(--bone);
}

.testimonial-slider {
    max-width: clamp(860px, 72%, 1400px);
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-width: 100%;
    padding: 0 2rem;
}

.stars {
    color: var(--yellow);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.quote {
    font-size: clamp(20px, 2vw, 26px);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--white);
    text-transform: none;
}

.author {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--yellow-soft);
}

.slider-controls {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.slider-btn {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: var(--white);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--navy-deep);
}

/* CTA Section */
.cta {
    background-image: linear-gradient(rgba(14,53,82, 0.62), rgba(14,53,82, 0.62)), url('assets/finish_carpentry.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

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

/* Footer */
.footer {
    background-color: var(--ink);
    color: var(--slate);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 8rem);
    margin-bottom: 4rem;
}

.footer-logo {
    height: 80px;
    width: auto;
}

.footer h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 1.5rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 1rem;
    font-size: 15px;
}

.footer a {
    color: var(--slate);
}

.footer a:hover {
    color: var(--yellow);
}

.contact-info li {
    display: flex;
    gap: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--slate-2);
}

/* ============================================
   Estimate / Contact Section
   ============================================ */

.estimate {
    background: var(--bone);
    border-top: 0;
}

.estimate-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: clamp(48px, 5vw, 160px);
    align-items: start;
}

.estimate-title {
    font-size: clamp(36px, 4.5vw, 88px) !important;
    margin-top: 1rem;
    line-height: 0.92 !important;
}

.estimate-desc {
    font-size: clamp(15px, 1.4vw, 17px);
    max-width: 44ch;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.estimate-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 2.5rem;
}

.estimate-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
}

.ef-check {
    color: var(--yellow-deep);
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.emergency-block {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--navy-deep);
    border-left: 4px solid var(--yellow);
    border-radius: 4px;
    padding: 20px 22px;
}

.emergency-badge-pill {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--yellow);
    border: 1.5px solid var(--yellow);
    border-radius: 4px;
    padding: 6px 10px;
    flex-shrink: 0;
    letter-spacing: 0.04em;
}

.emergency-label {
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0 0 5px;
}

.emergency-phone {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: block;
    line-height: 1;
}

.emergency-phone span {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
}

.emergency-phone:hover { color: var(--yellow); }

/* ── Form Card ── */
.estimate-form-wrap {
    background: var(--white);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 24px 48px -12px rgba(20,71,107,0.14), 0 4px 16px rgba(0,0,0,0.05);
    border: 1px solid var(--mist);
}

/* ── Step Indicator ── */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.step-pip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--mist);
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.step-pip.active {
    background: var(--navy);
    box-shadow: 0 0 0 3px rgba(20,71,107,0.18);
}

.step-pip.done { background: var(--yellow-deep); }

.step-track {
    flex: 1;
    height: 2px;
    background: var(--mist);
    border-radius: 2px;
    overflow: hidden;
}

.step-track-fill {
    height: 100%;
    background: var(--navy);
    width: 0%;
    transition: width 0.45s ease;
}

.step-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--slate-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Step transitions ── */
.form-step { animation: stepFadeIn 0.3s ease; }
.form-step.hidden { display: none; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: translateX(0); }
}

.form-step-heading {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 4px;
}

.form-step-sub {
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 22px;
}

/* ── Service Select Cards ── */
.service-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.ssc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 14px 14px 14px;
    border: 1.5px solid var(--mist);
    border-radius: 6px;
    background: var(--paper);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
    text-align: left;
    width: 100%;
}

.ssc:hover {
    border-color: var(--navy-mid);
    background: var(--navy-tint);
    transform: translateY(-1px);
}

.ssc.selected {
    border-color: var(--navy);
    background: var(--navy-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(20,71,107,0.22);
}

.ssc-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.ssc-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy-deep);
    line-height: 1.1;
}

.ssc.selected .ssc-name { color: var(--white); }

.ssc-sub {
    font-size: 11px;
    color: var(--slate);
    line-height: 1.3;
    font-family: var(--font-mono);
}

.ssc.selected .ssc-sub { color: rgba(255,255,255,0.6); }

/* ── Urgency Toggle ── */
.urgency-wrap { margin-bottom: 22px; }

.urgency-lbl {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--navy-deep);
    margin-bottom: 10px;
}

.urgency-toggle { display: flex; gap: 8px; }

.urgency-btn {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--mist);
    border-radius: 4px;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-align: center;
}

.urgency-btn:hover {
    border-color: var(--navy-mid);
    color: var(--navy);
}

.urgency-btn.selected {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
}

.urgency-btn[data-urgency="emergency"].selected {
    border-color: #b91c1c;
    background: #b91c1c;
}

/* Step 1 next button */
.step-btn {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

/* ── Form Fields (Step 2) ── */
.ff-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ff {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.ff label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-deep);
}

.ff-opt {
    font-family: var(--font-body);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--slate-2);
    font-size: 11px;
}

.req { color: #b91c1c; }

.ff input,
.ff textarea {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--mist);
    border-radius: 4px;
    padding: 11px 13px;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
}

.ff input::placeholder,
.ff textarea::placeholder { color: var(--slate-2); }

.ff input:focus,
.ff textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(20,71,107,0.1);
}

.ff input.has-error { border-color: #b91c1c; }
.ff input.has-error:focus { box-shadow: 0 0 0 3px rgba(185,28,28,0.12); }

.ff textarea { resize: vertical; min-height: 78px; }

.ff-err {
    font-size: 11.5px;
    color: #b91c1c;
    font-weight: 500;
    min-height: 0;
}

.ff-err:empty { display: none; }

/* ── Insurance Checkbox ── */
.ins-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    margin-bottom: 22px;
    padding: 13px 14px;
    background: var(--bone);
    border-radius: 4px;
    border: 1px solid var(--mist);
    transition: border-color 0.15s;
}

.ins-check:hover { border-color: var(--navy-mid); }
.ins-check input { display: none; }

.ins-box {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1.5px solid var(--mist);
    border-radius: 3px;
    background: var(--white);
    display: grid;
    place-items: center;
    transition: all 0.15s;
    margin-top: 1px;
}

.ins-check input:checked + .ins-box {
    background: var(--navy);
    border-color: var(--navy);
}

.ins-check input:checked + .ins-box::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.ins-check span:last-child {
    font-size: 13px;
    color: var(--slate);
    line-height: 1.45;
}

/* ── Form Actions ── */
.ff-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
    margin-bottom: 12px;
}

.back-btn {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--slate);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.15s;
    flex-shrink: 0;
}

.back-btn:hover { color: var(--navy); }

/* Submit spinner */
.btn-spin {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: btnSpin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes btnSpin { to { transform: rotate(360deg); } }

#submit-btn.loading .btn-label { display: none; }
#submit-btn.loading .btn-spin  { display: block; }
#submit-btn.loading { pointer-events: none; opacity: 0.8; }

/* Field/step errors */
.field-err {
    font-size: 12px;
    color: #b91c1c;
    font-weight: 500;
    margin-bottom: 10px;
}

.field-err.hidden { display: none; }

/* Privacy note */
.form-privacy {
    font-size: 11px;
    color: var(--slate-2);
    margin: 0;
    text-align: center;
}

/* Shake on validation fail */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

.shake { animation: shake 0.38s ease; }

/* ============================================
   Success Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 53, 82, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--white);
    border-radius: 12px;
    padding: clamp(32px, 5vw, 52px);
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 32px 64px -16px rgba(20,71,107,0.38);
    transform: translateY(28px) scale(0.96);
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-check-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
}

.check-svg { width: 100%; height: 100%; }

.check-circle {
    stroke: none;
    fill: var(--navy-tint);
}

.check-ring {
    stroke: var(--navy);
    stroke-width: 2.5;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    fill: none;
}

.check-path {
    stroke: var(--yellow-deep);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    fill: none;
}

.modal-overlay.open .check-ring {
    animation: drawRing 0.5s cubic-bezier(0.65, 0, 0.45, 1) 0.15s forwards;
}

.modal-overlay.open .check-path {
    animation: drawTick 0.38s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes drawTick { to { stroke-dashoffset: 0; } }

.modal-heading {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--navy-deep);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 10px;
}

.modal-body {
    font-size: 15px;
    color: var(--slate);
    max-width: 32ch;
    margin: 0 auto 26px;
    line-height: 1.55;
}

.modal-cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
}

.modal-close-btn {
    background: none;
    border: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--slate-2);
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.15s;
}

.modal-close-btn:hover { color: var(--slate); }

/* Mobile: bottom sheet */
@media (max-width: 580px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-card {
        border-radius: 20px 20px 0 0;
        max-width: 100%;
        padding: 36px 24px 48px;
        transform: translateY(100%);
        transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .modal-overlay.open .modal-card { transform: translateY(0); }
}

/* ============================================
   Estimate Section — Responsive
   ============================================ */

@media (max-width: 900px) {
    .estimate-grid { grid-template-columns: 1fr; }
    .estimate-info { order: 2; }
    .estimate-form-wrap { order: 1; }
    .estimate-title { font-size: clamp(32px, 6vw, 48px) !important; }
}

@media (max-width: 560px) {
    .service-select-grid { grid-template-columns: 1fr 1fr; }
    .ff-row { grid-template-columns: 1fr; gap: 0; }
    .urgency-toggle { flex-direction: column; }
    .ff-actions { flex-direction: column-reverse; gap: 10px; }
    .ff-actions .btn { width: 100%; justify-content: center; }
    .back-btn { align-self: center; }
    .step-label { display: none; }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-up.visible, .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ============================================
   Mobile Sticky CTA Bar
   ============================================ */

.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    box-shadow: 0 -4px 24px rgba(14,53,82,0.2);
}

.msb-call,
.msb-estimate {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 11px 8px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom));
    text-decoration: none;
    transition: opacity 0.15s;
}

.msb-call     { background: var(--navy-deep); }
.msb-estimate { background: var(--yellow); }

.msb-call:hover     { opacity: 0.92; }
.msb-estimate:hover { opacity: 0.92; }

.msb-icon { font-size: 17px; line-height: 1; }

.msb-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

.msb-call .msb-label     { color: rgba(255,255,255,0.88); }
.msb-estimate .msb-label { color: var(--navy-deep); }

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
    }
    body {
        padding-bottom: 70px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .excellence-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .check-list { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-action, .nav-phone { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--paper);
        padding: 2rem;
        box-shadow: var(--shadow-sm);
    }
}

/* ============================================
   Wide-screen / HD Desktop (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    /* Nav — taller bar, larger elements */
    .navbar { padding: 1.25rem 0; }
    .logo { height: 60px; }
    .navbar.scrolled .logo { height: 50px; }
    .nav-links { gap: 36px; }
    .nav-links a { font-size: 16px; }
    .nav-phone { font-size: 18px; }
    .nav-action .btn { font-size: 16px; padding: 15px 32px; }

    /* Hero */
    .hero { min-height: 90vh; }
    .hero-content { margin-top: 5rem; }

    /* Service cards — taller images, bigger text */
    .service-card .img-slot { aspect-ratio: 16/9; }
    .service-card p { font-size: 16px; }

    /* Excellence section */
    .lead { font-size: clamp(18px, 1.3vw, 22px); }

    /* Testimonials — bigger quote */
    .testimonial-slide .quote { font-size: clamp(18px, 1.4vw, 24px); line-height: 1.55; }

    /* Estimate form card */
    .estimate-form-wrap { padding: clamp(36px, 3vw, 60px); }

    /* Footer logo */
    .footer-logo { height: 96px; }
}

/* ============================================
   Ultra-wide / 2K–4K (1800px+)
   ============================================ */
@media (min-width: 1800px) {
    .section-padding { padding: 10rem 0; }
    .hero { min-height: 88vh; }
    .sec-head { margin-bottom: 5rem; }
    .services-grid { gap: 3rem; }
    .footer-grid { gap: 9rem; }
}
