/* ============================================================
   LAYOUT.CSS — Nav, Mobile Menu, Section Shell, Trust Bar,
                Process, Testimonials, About, Areas, Contact, Footer
   ============================================================ */

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.logo img {
    width: 200px;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-ui);
}

.nav-links a {
    color: var(--muted);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color .2s;
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: .25rem;
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-phone svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

@media (min-width: 1200px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
    .mobile-menu-btn {
        display: none !important;
    }
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: .5rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .1);
    padding: .5rem 0;
    z-index: 10;
}

.dropdown-content a {
    display: block;
    padding: .5rem 1rem;
    font-size: 1rem;
    color: var(--fg);
}

.dropdown-content a:hover {
    background: rgba(31, 48, 99, .05);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: block;
    padding: .5rem;
    border-radius: .5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--fg);
}

/* Mobile menu panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 18rem;
    background: #fff;
    z-index: 99;
    box-shadow: -10px 0 25px rgba(0, 0, 0, .1);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform .3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .5rem;
    border-radius: .5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-close svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--fg);
}

.mobile-menu nav {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu nav a {
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.125rem;
    display: block;
}

/* --- Section Shell --- */
.section {
    padding: 4rem 0;
}

@media (min-width: 640px) {
    .section {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

.section-header>p:first-child {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: .5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .section-header h2 {
        font-size: 3rem;
    }
}

.section-header>p:last-child {
    color: var(--muted);
    max-width: 42rem;
    margin: 0 auto;
}

/* --- Trust Bar --- */
.trust-bar {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

@media (max-width: 900px) {
    .trust-bar {
        display: none;
    }
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    color: var(--fg);
}

.trust-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Gallery --- */

/* Filter bar: unified pill container */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .25rem;
    margin-bottom: 3rem;
    padding: .375rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9999px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.filter-btn {
    padding: .5rem 1.25rem;
    border-radius: 9999px;
    font-family: var(--font-ui);
    font-size: .875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
    white-space: nowrap;
    line-height: 1;
}

.filter-btn.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(222, 37, 67, .35);
}

.filter-btn:hover:not(.active) {
    color: var(--fg);
    background: rgba(31, 48, 99, .07);
}

/* Load more */
.gallery-load-more button {
    margin: 3rem auto 0;
    display: block;
}

/* ── Uniform gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Gallery item base ── */
.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: .75rem;
    background: var(--card);
    border: 1px solid var(--border);
    position: relative;
    transition: transform .3s, box-shadow .3s;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 48, 99, .12);
}

/* ── Image wrapper ── */
.gallery-img-wrapper {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #e2e8f0;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gallery-item:hover img {
    transform: scale(1.07);
}

/* ── Overlay info panel ── */
.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1rem;
    background: linear-gradient(
        to top,
        rgba(15, 26, 61, .88) 0%,
        rgba(15, 26, 61, .5)  55%,
        transparent           100%
    );
    color: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s ease, transform .3s ease;
}

.gallery-item:hover .gallery-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: .25rem;
}

.gallery-meta {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    color: rgba(255, 255, 255, .7);
}

/* --- Process --- */
.process-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(100% + 8px);
    width: calc(100% - 48px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    display: none;
}

@media (min-width: 1024px) {
    .process-step:not(:last-child)::after {
        display: block;
    }
}

.step-number {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: .5rem;
}

.process-step p {
    color: var(--muted);
    font-size: .875rem;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.testimonial-card {
    background: linear-gradient(135deg, var(--card), rgba(31, 48, 99, .02));
    border: 1px solid var(--border);
    border-radius: .75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: transform .3s, box-shadow .3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(31, 48, 99, .1);
}

.stars {
    display: flex;
    gap: .25rem;
    margin-bottom: 1rem;
}

.stars svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent);
}

.testimonial-card p {
    margin-bottom: 1rem;
}

.testimonial-card .author {
    font-weight: 600;
}

.testimonial-card .location {
    color: var(--muted);
    font-size: .875rem;
}
.testimonial-card .review-text {
    max-height: 120px;
    overflow: hidden;
    transition: max-height .4s ease;
    position: relative;
}

/* subtle fade at bottom */
.testimonial-card .review-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--card));
}

.testimonial-card.expanded .review-text {
    max-height: 1000px;
}

.testimonial-card.expanded .review-text::after {
    display: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: .5rem;
}

/* --- About --- */
.about-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image img {
    width: 100%;
    border-radius: .75rem;
    box-shadow: 0 12px 24px rgba(31, 48, 99, .15);
}

/* --- Areas --- */
.areas-grid {
    display: grid;
    gap: 3rem;
    align-items: stretch;        /* ensures both columns have equal height */
}

@media (min-width: 768px) {
    .areas-grid {
        grid-template-columns: 1fr 1fr;  /* left list, right map */
    }
}

/* Location list: exact two columns, consistent pill sizing */
.areas-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* two equal columns */
    gap: 0.75rem;
}

/* On very small screens, switch to one column for readability */
@media (max-width: 480px) {
    .areas-list {
        grid-template-columns: 1fr;
    }
}

/* Pill styling (no icon) */
.area-item {
    background: #f2f4f8;
    color: #2c3e50;
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;       /* allows long names to wrap */
    min-height: 48px;              /* gives a consistent base height */
}

.area-item:hover {
    background: #e6e9f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

/* Map container - now fills the entire height of its grid cell */
.map-container {
    width: 100%;
    height: 100%;                  /* take full height of grid cell */
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 100%;                  /* fill the container */
    border: 0;
    display: block;                /* remove extra space below iframe */
}

.map-container:hover {
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.15);
}


/* --- Contact --- */
.contact-grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .contact-info h2 {
        font-size: 3rem;
    }
}

.contact-info>p {
    color: var(--muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item .icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: .5rem;
    background: linear-gradient(135deg, rgba(31, 48, 99, .08), rgba(31, 48, 99, .03));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item .icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--fg);
}

.contact-item .label {
    font-weight: 600;
    margin-bottom: .25rem;
}

.contact-item a,
.contact-item p {
    color: var(--muted);
    font-size: 1rem;
    margin: 0;
}

.contact-item a:hover {
    color: var(--accent);
}

/* --- Footer --- */
.footer {
    background: var(--fg);
    color: #fff;
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.footer-brand svg {
    width: 2rem;
    height: 2rem;
    color: var(--accent);
}

.footer p {
    color: #9ca3af;
    font-size: .875rem;
}

.footer h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer ul li {
    margin-bottom: .5rem;
}

.footer ul a {
    color: #9ca3af;
    font-size: .875rem;
    transition: color .2s;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    font-size: .875rem;
    color: #6b7280;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #9ca3af;
    transition: color .2s;
}

.social-links a:hover {
    color: var(--accent);
}

.social-links svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* --- About Hero --- */
.about-hero {
    background-color: var(--fg);
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Pill badge */
.about-hero-badge {
    display: inline-block;
    padding: .45rem 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: .15em;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.about-hero .wood-accent {
    margin: 1.25rem auto;
}

/* Title */
.about-hero-title {
    font-size: clamp(2.75rem, 7vw, 5rem);
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

/* Subtitle */
.about-hero-subtitle {
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .82);
    line-height: 1.6;
}

/* Scroll indicator (mouse icon style) */
.about-hero-scroll {
    position: absolute;
    bottom: 2.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color .3s ease;
}

.about-hero-scroll:hover {
    color: #fff;
}

.about-hero-scroll-label {
    font-family: var(--font-ui);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
}

/* Dot inside the mouse icon bounces */
.about-hero-scroll .scroll-dot {
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { cy: 8; opacity: 1; }
    50%      { cy: 18; opacity: .3; }
}

/* Fade in on load */
.about-hero-inner {
    animation: heroFadeUp .8s ease-out both;
}

.about-hero-scroll {
    animation: heroFadeUp .8s ease-out .4s both;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* The inner element doesn't need the translateX so override */
.about-hero-inner {
    animation-name: heroContentFadeUp;
}

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

/* On small screens, reduce hero height a bit */
@media (max-width: 640px) {
    .about-hero {
        min-height: 65vh;
    }
    .about-hero-subtitle {
        font-size: 1.05rem;
    }
}