/* 9Builders — Stylesheet
   1. Reset & Base    4. Nav & Top Bar    7. Accordion / FAQ
   2. Layout & Grid   5. Hero & Banners   8. Footer
   3. Utilities       6. Cards            9. Responsive */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Open+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --gold: #D4A84B; --gold-hover: #c49a3d;
    --blue: #0d6efd; --blue-hover: #0b5ed7;
    --dark: #333; --body: #4b4f58; --border: #e5e7eb; --light: #f0f1f3;
}

/* 1. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.7; color: var(--body); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dark); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3, h4, h5, h6 { font-family: 'Libre Baskerville', serif; color: var(--dark); font-weight: 400; }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.2em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }
button, input, select, textarea { font: inherit; }
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e0e0e0; }
th { background: var(--dark); color: #fff; font-weight: 600; font-size: 14px; }
tr:nth-child(even) { background: #f9f9f9; }
td { font-size: 14px; }
.img-rounded { width: 100%; border-radius: 6px; }

/* 2. Layout & Grid */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 4rem 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.split-half { flex: 1 1 45%; }
.split-sm { flex: 0 0 40%; }
.split-lg { flex: 1 1 55%; }
.align-center { align-items: center; }
.split-half { overflow: hidden; }
.split-half img { transition: transform 0.3s ease; }
.split:hover .split-half img { transform: scale(1.05); }

/* 3. Utilities */
.d-none { display: none; }
.d-flex { display: flex; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-center { text-align: center; }
.text-muted { color: #6c757d; }
.text-white { color: #fff; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.bg-white { background: #fff; }
.bg-light { background: var(--light); }
.bg-section { background: var(--light); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; } .mb-5 { margin-bottom: 3rem; }
.mt-2 { margin-top: .5rem; } .mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; } .mt-5 { margin-top: 3rem; }
.p-3 { padding: 1rem; } .p-4 { padding: 1.5rem; }

/* Buttons */
.btn-gold {
    display: inline-block; background: var(--blue); color: #fff;
    padding: 10px 24px; font-size: 15px; border: 2px solid var(--blue); border-radius: 3px;
    cursor: pointer; transition: all .3s;
}
.btn-gold:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-outline {
    display: inline-block; background: transparent; color: #fff;
    padding: 10px 24px; font-size: 15px; border: 2px solid #fff; border-radius: 3px;
    cursor: pointer; transition: all .3s;
}
.btn-outline:hover { background: #fff; color: var(--dark); }
.btn-read-more {
    display: inline-block; color: var(--blue); padding: 6px 18px;
    border: 1px solid var(--blue); border-radius: 3px;
    font-size: 13px; font-weight: 600; margin-top: auto; align-self: flex-start; transition: all .2s;
}
.btn-read-more:hover { background: var(--blue); color: #fff; }

/* Section headings */
.section-title { font-size: 2.5rem; margin-bottom: 10px; }
.section-subtitle { color: #888; font-size: 15px; margin-bottom: 40px; }

/* 4. Nav & Top Bar */
.top-bar { background: #1a1a1a; padding: 6px 0; font-size: 14px; }
.top-bar .container { display: flex; justify-content: flex-end; gap: 14px; }
.top-bar a { color: #fff; } .top-bar a:hover { color: var(--gold); }
.navbar {
    background: #fff; padding: 15px 0; position: sticky; top: 0; z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.navbar-brand img { height: 50px; width: auto; }
.navbar-nav { display: flex; list-style: none; gap: 4px; align-items: center; margin-bottom: 0; padding-left: 0; }
.navbar-nav .nav-item { position: relative; }
.navbar-nav .nav-link { display: block; padding: 8px 14px; font-size: 15px; color: var(--dark); transition: color .2s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--gold); }
.dropdown-toggle::after {
    content: ''; display: inline-block; margin-left: 5px; vertical-align: -1px;
    border: 4px solid transparent; border-top-color: currentColor;
}
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; z-index: 200;
    min-width: 220px; background: #fff; border-radius: 4px; padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1); list-style: none; overflow: visible;
}
.dropdown-menu.show { display: block; }
.dropdown-item { display: block; padding: 7px 20px; font-size: 14px; color: var(--dark); }
.dropdown-item:hover { background: var(--light); color: var(--gold); }
.has-submenu { position: relative; }
.has-submenu > .submenu {
    display: none; position: absolute; left: 100%; top: 0; z-index: 210;
    min-width: 180px; background: #fff; border-radius: 4px; padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.1); list-style: none; margin: 0;
}
.has-submenu:hover > .submenu { display: block; }
.submenu li a { display: block; padding: 6px 18px; font-size: 13px; color: var(--dark); }
.submenu li a:hover { background: var(--light); color: var(--gold); }
.navbar-toggler { display: none; background: none; border: none; padding: 6px 10px; cursor: pointer; }
.navbar-toggler-icon { display: block; width: 22px; height: 2px; background: var(--dark); position: relative; }
.navbar-toggler-icon::before, .navbar-toggler-icon::after { content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--dark); }
.navbar-toggler-icon::before { top: -7px; } .navbar-toggler-icon::after { top: 7px; }

/* 5. Hero & Banners */
.hero-section {
    position: relative; min-height: 90vh; display: flex; align-items: center;
    justify-content: center; text-align: center; color: #fff;
    background-size: cover; background-position: center;
}
.hero-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.hero-content { position: relative; z-index: 2; max-width: 860px; padding: 0 20px; }
.hero-subtitle { font-size: 14px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; font-weight: 600; }
.hero-title { font-size: 3.5rem; color: #fff; line-height: 1.2; margin-bottom: 20px; }
.hero-text { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 30px; }
.dark-section { position: relative; background-size: cover; background-position: center; color: #fff; padding: 100px 0; }
.dark-section::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.dark-section .container { position: relative; z-index: 2; }
.dark-section h2 { font-size: 3rem; color: #fff; }
.dark-section p { color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.8; }
.video-frame { border-radius: 6px; overflow: hidden; }
.video-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: none; }

/* Gallery Sections */
.gallery-section { text-align: center; font-size: 1.8rem; margin: 2.5rem 0 1.5rem; color: var(--heading); font-family: var(--font-heading); }
.at-places-intro, .at-places-about { margin-bottom: 2rem; }
.at-places-intro h2, .at-places-about h2 { font-family: var(--font-heading); color: var(--heading); margin-bottom: 1rem; }

/* 6. Cards */
.grid > .card { height: 100%; }
.card {
    background: #fff; border: 1px solid var(--border); border-radius: 6px;
    overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.4; }
.card-title a { color: var(--dark); } .card-title a:hover { color: var(--gold); }
.card-text { font-size: 14px; color: var(--body); line-height: 1.7; flex: 1; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 30px; height: 100%; }
.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: 15px; }
.testimonial-text { font-size: 14px; line-height: 1.8; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; margin-right: 12px; flex-shrink: 0; }
.testimonial-name { font-size: 14px; }
.testimonial-source { color: #999; font-size: 13px; }
.testimonial-intro { font-size: 15px; color: var(--body); }
.testimonial-num { font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.check-item { margin-bottom: 20px; }
.check-item h3, .check-item h4 { font-size: 1.1rem; margin-bottom: 4px; }
.check-item p { font-size: 14px; color: var(--body); margin: 0; }
.check-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.check-header h3, .check-header h4 { margin: 0; font-size: 1.1rem; }
.check-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: #fff; }
.check-icon svg { width: 14px; height: 14px; fill: var(--dark); }
.why-card { border: 1px solid var(--border); border-radius: 6px; padding: 30px; background: #fff; height: 100%; }
.why-card .number { font-size: 14px; color: #999; margin-bottom: 12px; }
.why-card h5 { font-size: 1.2rem; margin-bottom: 12px; }

/* 7. Accordion / FAQ */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.10); overflow: hidden; }
.accordion-button {
    display: flex; align-items: center; width: 100%; padding: 16px 20px;
    font-family: 'Libre Baskerville', serif; font-size: 1.05rem;
    color: var(--dark); background: #fff; border: none; cursor: pointer; text-align: left;
}
.accordion-button::before {
    content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-right: 14px; margin-top: 2px;
    border-right: 2px solid var(--dark); border-bottom: 2px solid var(--dark);
    transform: rotate(-45deg); transition: transform .2s;
}
.accordion-button:not(.collapsed)::before { transform: rotate(45deg); }
.accordion-button:not(.collapsed) { color: var(--blue); font-weight: 600; }
.accordion-button::after { display: none; }
.accordion-collapse, .collapse:not(.navbar-collapse) { display: none; }
.accordion-collapse.show, .collapse.show { display: block; }
.accordion-body { padding: 4px 20px 16px 44px; font-size: 14px; color: var(--body); line-height: 1.8; }
.alert { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 1rem; background: #d1e7dd; color: #0f5132; }
.alert button { background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; }

/* WP Content (blog posts, remaining DB pages) */
.content-area > * { max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.content-area > .alignfull { max-width: none; width: 100%; padding: 100px 40px; background-size: cover; background-position: center; }
.alignfull > .uagb-container-inner-blocks-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.uagb-is-root-container { box-sizing: border-box; }
.uagb-ifb-icon-wrap, .uagb-ifb-title-prefix { display: none !important; }
.uagb-ifb-title { margin-bottom: .5rem; } .uagb-ifb-desc { margin-bottom: 1rem; }
.uagb-faq-content { display: none; }
.uagb-faq-item-active .uagb-faq-content { display: block !important; }
.uagb-faq-questions-button { cursor: pointer; }
.uagb-button__link { display: inline-flex; align-items: center; text-decoration: none; }
.uagb-buttons-layout-wrap { display: flex; flex-wrap: wrap; }
.spectra-image-gallery__layout--grid { display: grid; gap: 16px; }
.spectra-image-gallery__layout--grid-col-3 { grid-template-columns: repeat(3, 1fr); }
.spectra-image-gallery__media-thumbnail img { width: 100%; height: auto; }
.wp-block-embed iframe { aspect-ratio: 16/9; width: 100% !important; height: auto !important; }
.content-narrow { max-width: 840px; margin: 0 auto; }
.content-narrow h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content-narrow ul { margin-bottom: 1rem; }
.content-narrow li { margin-bottom: 0.5rem; }

/* Table of Contents */
.toc { background:#fff; border-left:3px solid var(--gold); border-radius:0 8px 8px 0; padding:1.5rem 1.75rem; margin:2rem 0 2.5rem; box-shadow:0 1px 8px rgba(0,0,0,0.07); }
.toc .toc-title { font-family:'Open Sans',sans-serif; font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--gold); margin:0 0 0.9rem; padding-bottom:0.6rem; border-bottom:1px solid var(--border); }
.toc ol { margin:0; padding-left:1.4rem; }
.toc li { margin-bottom:0.45rem; font-size:0.9rem; line-height:1.5; }
.toc a { color:var(--body); text-decoration:none; }
.toc a:hover { color:var(--gold); }
.toc ul { list-style:disc; padding-left:1.2rem; margin:0.35rem 0 0.15rem; }
.toc ul li { font-size:0.85rem; margin-bottom:0.2rem; color:#6c757d; }
.post-content, .page-content { line-height: 1.8; font-size: 15px; }
.post-content h2, .post-content h3 { margin-top: 2rem; margin-bottom: 1rem; }
.post-content img { border-radius: 6px; margin: 1.5rem 0; }
.post-content blockquote { border-left: 4px solid var(--gold); padding: 1rem 1.5rem; margin: 1.5rem 0; background: #fff; font-style: italic; }

/* 8. Footer */
footer { background: #fff; border-top: 1px solid var(--border); padding: 50px 0 20px; color: var(--body); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
footer h5 { font-size: 1.1rem; margin-bottom: 18px; }
footer .footer-desc { font-size: 14px; color: #777; line-height: 1.7; }
footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 6px; }
footer ul li a { color: #666; font-size: 14px; } footer ul li a:hover { color: var(--gold); }
footer .social-icons { display: flex; gap: 14px; margin-top: 16px; }
footer .social-icons a { color: var(--body); font-size: 18px; } footer .social-icons a:hover { color: var(--gold); }
footer .contact-info p { font-size: 14px; margin-bottom: 4px; color: #666; }
.copyright { text-align: center; font-size: 13px; color: #999; border-top: 1px solid var(--border); padding-top: 15px; margin-top: 30px; }

/* 9. Responsive */
@media (max-width: 991px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .navbar-toggler { display: block; }
    .navbar-collapse { display: none; width: 100%; }
    .navbar-collapse.show { display: block; }
    .navbar .container { flex-wrap: wrap; }
    .navbar-nav { flex-direction: column; width: 100%; padding: 10px 0; }
    .navbar-nav .nav-link { padding: 10px 0; }
    .dropdown-menu { position: static; box-shadow: none; padding-left: 16px; }
    .dropdown-menu.show { display: block; }
}
@media (min-width: 992px) { .navbar-collapse { display: flex !important; } }
@media (min-width: 768px) { .d-md-block { display: block; } }
@media (max-width: 767px) {
    .top-bar { display: none; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .split > * { flex: 1 1 100%; }
    .hero-section { min-height: 60vh; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .dark-section h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .spectra-image-gallery__layout--grid-col-mob-2 { grid-template-columns: repeat(2, 1fr); }
    .portfolio-gallery { grid-template-columns: 1fr; }
    .gallery-item .gallery-caption { opacity: 1; font-size: 12px; }
}

/* --- 10. Portfolio Gallery --- */
.portfolio-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 4px; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform 0.5s, filter 0.5s; }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(0.5); }
.gallery-item .gallery-caption { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; padding: 15px; color: #fff; font-size: 14px; text-align: center; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.gallery-item:hover .gallery-caption { opacity: 1; }


/* --- 11. Contact Form --- */
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 30px; }
.contact-form h3 { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 15px; }
.form-group textarea { resize: vertical; }
.btn-submit { width: 100%; border: none; cursor: pointer; font-size: 16px; }
.contact-link { color: var(--gold); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
