/* ============================================================
   CSS Variables
   ============================================================ */
:root {
    --primary-color: #0f75bd;
    --primary-dark: #0b5a91;
    --secondary-color: #1e293b;
    --text-color: #2d3748;
    --light-bg: #f0f7ff;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-accent: 'Poppins', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(15, 117, 189, 0.1);
    --shadow-hover: 0 8px 24px rgba(15, 117, 189, 0.22);
    --transition: all 0.3s ease;
    --header-height: 72px;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white);
    font-size: 17px; /* slightly larger base for older readers */
    padding-top: var(--header-height);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1.25;
}

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

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

ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.text-center { text-align: center; }
.bg-light { background-color: var(--light-bg); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-accent);
    white-space: nowrap;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-outline-white {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: var(--white);
}

.btn-outline-white:hover, .btn-outline-white:focus {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.15rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.65rem 1.4rem;
    font-size: 0.8rem;
}

.mt-2 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.5rem; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 4px 14px rgba(15, 117, 189, 0.09);
    border-bottom: 1px solid rgba(15, 117, 189, 0.06);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 32px rgba(15, 117, 189, 0.16);
    background-color: rgba(255, 255, 255, 1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100%;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-logo img { height: 58px; }

.header-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-item { position: relative; }

.nav-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-label i { font-size: 0.65rem; transition: var(--transition); }

.nav-item:hover .nav-label,
.nav-dropdown.active .nav-label {
    color: var(--primary-color);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 240px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    border-radius: var(--border-radius);
    z-index: 200;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.btn-header {
    padding: 0.7rem 1.3rem;
    font-size: 0.75rem;
    white-space: nowrap;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    padding: 0.25rem;
    transition: var(--transition);
}

.mobile-menu-toggle:hover { color: var(--primary-color); }
.mobile-only-nav { display: none; }

/* ============================================================
   Hero Section
   ============================================================ */
.hero-section {
    position: relative;
    padding: 120px 0 100px;
    background-image: url('https://baystateremodeling.com/wp-content/uploads/2024/05/bathroom-remodeling-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    min-height: 560px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.6) 0%, rgba(11, 90, 145, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    line-height: 1.18;
    margin-bottom: 1.25rem;
    color: var(--white);
    font-weight: 800;
    font-family: var(--font-accent);
}

.hero-highlight {
    display: inline-block;
    color: #fff;
    text-shadow: 0 0 12px rgba(64, 180, 255, 0.6);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.75;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-family: var(--font-accent);
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 1rem;
    font-family: var(--font-accent);
    font-weight: 800;
}

.section-subtitle,
.section-description {
    font-size: 1.05rem;
    color: #5a6a7e;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================================
   Services Grid (3×3)
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.service-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-item:hover .service-image img {
    transform: scale(1.06);
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.service-content p {
    color: #5a6a7e;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ============================================================
   Process Cards
   ============================================================ */
.process-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.process-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.process-icon {
    margin-bottom: 1.25rem;
}

.process-icon i {
    font-size: 72px;
    color: var(--primary-color);
}

.process-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.process-content p {
    color: #5a6a7e;
    line-height: 1.8;
    font-size: 0.975rem;
}

/* ============================================================
   Design Team
   ============================================================ */
.design-team-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.design-team-text h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.1rem);
    margin-bottom: 1.25rem;
}

.design-team-text p {
    font-size: 1rem;
    line-height: 1.85;
    color: #5a6a7e;
    margin-bottom: 1.5rem;
}

.design-team-text a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.design-team-list {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.75rem;
}

.design-team-list::-webkit-scrollbar { width: 5px; }
.design-team-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; }
.design-team-list::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }

.dt-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid #e8edf4;
}

.dt-item:last-child { border-bottom: none; }

.dt-icon {
    color: var(--primary-color);
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.dt-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.dt-content p {
    font-size: 0.93rem;
    color: #5a6a7e;
    margin: 0;
    line-height: 1.65;
}

/* ============================================================
   Before & After Sliders
   ============================================================ */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    cursor: col-resize;
}

.ba-img-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ba-img-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-img { z-index: 1; }

.before-img {
    z-index: 2;
    width: 50%;
    border-right: 3px solid var(--white);
}

.before-img img {
    width: 100%;
    max-width: none;
}

.ba-label {
    position: absolute;
    top: 0.75rem;
    padding: 0.4rem 0.85rem;
    background: rgba(0,0,0,0.65);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 3;
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.before-label { left: 0.75rem; }
.after-label { right: 0.75rem; }

.ba-slider-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 4;
    cursor: col-resize;
    margin: 0;
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 3px 14px rgba(0,0,0,0.28);
    border: 2px solid var(--primary-color);
}

.ba-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.6rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 3;
    pointer-events: none;
    text-align: center;
    letter-spacing: 0.3px;
}

/* ============================================================
   Ideas Section
   ============================================================ */
.ideas-section {
    padding: 4rem 0;
    background: #fafbfc;
}

.ideas-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.idea-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.5rem 1.25rem;
    border-radius: 14px;
    background: var(--white);
    border: 1px solid #e1e7f5;
    box-shadow: 0 6px 20px rgba(15, 117, 189, 0.07);
    width: 100%;
    max-width: 280px;
    transition: var(--transition);
}

.idea-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 117, 189, 0.14);
}

.idea-card img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.idea-card h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.idea-card p {
    margin: 0;
    color: #5a6a7e;
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ============================================================
   Portfolio Gallery
   ============================================================ */
.portfolio-section { padding: 4rem 0; }

.portfolio-gallery-container {
    max-width: 1000px;
    margin: 0 auto;
}

.portfolio-main-display {
    position: relative;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.main-image-wrapper {
    width: 100%;
    height: 480px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #111;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.gallery-nav {
    background: rgba(255, 255, 255, 0.88);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    flex-shrink: 0;
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.portfolio-thumbnails {
    overflow-x: auto;
    padding: 0.75rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #eee;
}

.thumbnail-track {
    display: flex;
    gap: 0.85rem;
    padding: 0 0.25rem;
}

.thumbnail-item {
    flex: 0 0 110px;
    height: 76px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    border: 2px solid transparent;
}

.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-item:hover { opacity: 0.9; }
.thumbnail-item.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-accordion {
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 0.85rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover,
.faq-item.active {
    box-shadow: 0 0 20px rgba(15, 117, 189, 0.35), 0 4px 12px rgba(0,0,0,0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.35rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: left;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.faq-question:hover { color: var(--primary-color); }
.faq-question i { flex-shrink: 0; color: var(--primary-color); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.85;
    color: #5a6a7e;
    font-size: 0.98rem;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
    text-align: left;
}

.footer-col h3 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.service-areas-list {
    list-style: disc;
    padding-left: 1.25rem;
}

.service-areas-list li {
    font-size: 0.9rem;
    color: #b8c5d6;
    margin-bottom: 0.35rem;
    line-height: 1.4;
}

.footer-services-list li {
    font-size: 0.9rem;
    color: #b8c5d6;
    margin-bottom: 0.55rem;
}

.footer-services-list a:hover { color: var(--primary-color); }

.logo-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 1rem;
}

.footer-logo-wrap img {
    display: block;
    height: 72px;
    width: auto;
    margin: 0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #a8b8cb;
    margin-bottom: 1.25rem;
    font-style: italic;
    line-height: 1.6;
}

.footer-contact-block h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}

.footer-phone {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-phone:hover { color: #4db3f0; }

.footer-address p {
    font-size: 0.88rem;
    color: #a8b8cb;
    line-height: 1.65;
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.78rem;
    color: #6e82a0;
    text-align: center;
}

.google-business-link { margin-top: 1.25rem; }

.g-business-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: #ccd8e8;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--transition);
}

.g-business-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.g-business-btn i { color: #4285F4; font-size: 1rem; }

/* ============================================================
   Contact Form Modal
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    width: min(94%, 700px);
    position: relative;
    box-shadow: 0 24px 60px rgba(15, 117, 189, 0.22);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.9rem;
    color: #8a9ab0;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    padding: 0.25rem;
    transition: var(--transition);
}

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

.form-subtitle {
    color: #6a7a8e;
    margin-bottom: 1.5rem;
    font-size: 0.97rem;
    line-height: 1.65;
}

/* Progress Bar */
.progress-meta {
    margin-bottom: 1.5rem;
}

.progress-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #5a6a7e;
    margin-bottom: 0.4rem;
}

.progress-bar {
    background: #dde4ef;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
    width: 17%;
}

/* Form Steps */
.form-step { display: none; }
.form-step.active {
    display: block;
    animation: fadeInSlide 0.28s ease;
}

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

.form-step-header { margin-bottom: 1rem; }
.form-step-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    color: var(--secondary-color);
}

.form-step-header p {
    color: #6a7a8e;
    font-size: 0.93rem;
    margin: 0;
}

.required-note {
    color: #e53e3e;
    font-weight: 700;
}

/* Radio Options */
.radio-group { margin: 1rem 0 1.5rem; }

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 2px solid #dde4ef;
    border-radius: var(--border-radius);
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.radio-option:hover {
    border-color: var(--primary-color);
    background: rgba(240, 247, 255, 0.85);
}

.radio-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(15, 117, 189, 0.07);
    color: var(--primary-color);
}

.radio-option input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.other-input-wrapper {
    margin-top: 0.5rem;
    margin-left: 0;
}

.other-text-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #c8d3e0;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-family: var(--font-body);
    color: var(--text-color);
}

/* Form fields */
.form-field {
    margin-bottom: 1rem;
}

.form-field label,
.form-step > label {
    display: block;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.35rem;
    font-size: 0.96rem;
}

.form-step input:not([type="radio"]):not([type="hidden"]),
.form-step textarea,
.other-text-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #cdd4e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-body);
    background: #fff;
    color: var(--text-color);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    margin-top: 0.2rem;
}

.form-step input:not([type="radio"]):not([type="hidden"]):focus,
.form-step textarea:focus,
.other-text-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(15, 117, 189, 0.15);
    outline: none;
}

.form-step input.invalid,
.form-step textarea.invalid {
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.12);
}

.form-step textarea {
    min-height: 140px;
    resize: vertical;
}

.form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 0;
}

.form-grid.two-columns {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* Field-level error messages */
.field-error {
    color: #c53030;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Button group */
.button-group {
    display: flex;
    gap: 0.85rem;
    justify-content: space-between;
    margin-top: 1.75rem;
}

.button-group .btn { flex: 1; }
.button-group .btn:only-child { max-width: 200px; margin-left: auto; }

/* Form Success */
.form-success {
    text-align: center;
    padding: 2.5rem 1rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    animation: successPop 0.5s ease;
}

.form-success h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
}

.form-success p {
    color: #5a6a7e;
    margin-bottom: 0.85rem;
    line-height: 1.8;
    font-size: 1rem;
}

.success-note {
    font-size: 0.88rem;
    color: #8a9ab0;
    font-style: italic;
    margin-bottom: 1.75rem;
}

@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* ============================================================
   Testimonials Wrapper (let testimonials.css handle internals)
   ============================================================ */
.testimonials-section { padding: 0; }

/* ============================================================
   Responsive — 992px (tablet / mobile nav)
   ============================================================ */
@media (max-width: 992px) {
    .header-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.5rem 1.75rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        display: none;
        gap: 0.25rem;
        z-index: 1050;
    }

    .header-nav.active { display: flex; }

    .nav-item { width: 100%; }

    .nav-label {
        padding: 0.65rem 0;
        font-size: 1rem;
        border-bottom: 1px solid #e8edf4;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-left: 3px solid var(--primary-color);
        margin-left: 0.5rem;
        box-shadow: none;
        width: 100%;
        padding: 0.25rem 0;
        border-radius: 0;
    }

    .dropdown-menu a {
        width: 100%;
        padding-left: 1.25rem;
        font-size: 0.95rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .nav-dropdown.active .dropdown-menu { display: block; }

    .btn-header { display: none; }
    .mobile-menu-toggle { display: block; }
    .mobile-only-nav { display: block; }

    .hero-section { min-height: 480px; padding: 90px 0 80px; }

    .design-team-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .design-team-list { max-height: none; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Responsive — 768px (mobile)
   ============================================================ */
@media (max-width: 768px) {
    body { font-size: 16px; }

    :root { --header-height: 64px; }

    .hero-section { min-height: 420px; padding: 70px 0 60px; }
    .hero-title { font-size: clamp(1.75rem, 6vw, 2.4rem); }
    .hero-subtitle { font-size: 0.97rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 300px; }

    .section { padding: 3.5rem 0; }

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

    .process-cards { grid-template-columns: 1fr; }

    .ba-grid { grid-template-columns: 1fr; }
    .ba-slider-container { height: 300px; }

    .ideas-grid { gap: 1rem; }
    .idea-card { max-width: 100%; flex-direction: row; text-align: left; }
    .idea-card img { width: 90px; height: 90px; flex-shrink: 0; }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .service-areas-list { text-align: left; display: inline-block; }
    .logo-col { order: -1; }

    .modal-content {
        padding: 1.5rem 1.25rem;
        max-height: calc(100vh - 20px);
        border-radius: 10px;
    }

    .modal-content h2 { font-size: 1.3rem; }

    .button-group { flex-direction: column; }
    .button-group .btn:only-child { max-width: 100%; }

    .form-grid.two-columns { grid-template-columns: 1fr; }

    .main-image-wrapper { height: 280px; }

    .gallery-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .prev-img { left: 8px; }
    .next-img { right: 8px; }
    .gallery-nav:hover { transform: translateY(-50%) scale(1.1); }
}

/* ============================================================
   Responsive — 480px (small phones)
   ============================================================ */
@media (max-width: 480px) {
    .header-logo img { height: 46px; }
    .section-title { font-size: 1.5rem; }
    .hero-title { font-size: 1.7rem; }

    .idea-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .idea-card img { width: 110px; height: 110px; }

    .footer-services-list { columns: 2; -webkit-columns: 2; }

    .modal-overlay { padding: 0.5rem; }
    .modal-content { padding: 1.25rem 1rem; }
}
