/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & General Styles
2.  Header & Navigation
3.  Hero Section
4.  Philosophy Section
5.  Services (Tabs) Section
6.  Audit CTA Section
7.  Team Section
8.  FAQ (Accordion) Section
9.  Testimonials Section
10. Footer
11. Sub-Page Styles (Contact, Legal)
12. Animations & Keyframes
13. Responsive Media Queries
================================================
*/

/* 1. :root Variables & General Styles */
:root {
    --color-primary: #2C3E3A; /* Deep Green */
    --color-accent: #B8954F; /* Gold */
    --color-background: #F4F1EC; /* Sandy Beige */
    --color-background-alt: #FFFFFF;
    --color-text: #5A5A5A;
    --color-headings: #2C3E3A;
    --color-border: #EAE5DC;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --header-height: 90px;
    --border-radius: 4px;
    --transition-speed: 0.4s;
    --section-padding: 120px 0;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--color-background); color: var(--color-text); font-family: var(--font-body); line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-speed) ease; }
a:hover { opacity: 0.8; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-headings); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3.5rem, 6vw, 5.5rem); }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-padding { padding: var(--section-padding); }
.highlight { color: var(--color-accent); }
.subtitle { font-family: var(--font-body); font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; display: block; }
.section-title { margin-bottom: 4rem; max-width: 600px; }
.cta-button { display: inline-block; padding: 14px 32px; background-color: var(--color-accent); color: #fff; font-family: var(--font-body); font-weight: 700; border: 2px solid var(--color-accent); border-radius: 50px; transition: all var(--transition-speed) ease; }
.cta-button:hover { background-color: transparent; color: var(--color-accent); }

/* 2. Header & Navigation */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); display: flex; align-items: center; transition: all var(--transition-speed) ease; }
#main-header.scrolled { background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
#main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { color: var(--color-headings); font-family: var(--font-body); font-weight: 700; font-size: 1.5rem; }
.logo-link { display: flex; align-items: center; gap: 12px; }
.nav-links { display: flex; gap: 40px; }
.nav-link { color: var(--color-headings); font-weight: 500; position: relative; padding: 5px 0; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background-color: var(--color-accent); transition: width var(--transition-speed) ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
#hamburger-btn { display: none; background: none; border: none; z-index: 1001; }
#hamburger-btn .bar { display: block; width: 25px; height: 2px; margin: 6px auto; background-color: var(--color-headings); transition: all 0.3s ease-in-out; }

/* 3. Hero Section */
#hero { padding-top: calc(var(--header-height) + 80px); padding-bottom: 80px; }
.hero-grid { display: grid; grid-template-columns: 1fr; }
.hero-content { max-width: 800px; }
#hero h1 { margin-bottom: 1.5rem; }
#hero p { font-size: 1.25rem; max-width: 600px; margin-bottom: 2.5rem; line-height: 1.7; }

/* 4. Philosophy Section */
#philosophy { background-color: var(--color-background-alt); }
.philosophy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }
.philosophy-card { border-left: 3px solid var(--color-accent); padding-left: 2rem; }
.philosophy-card h3 { margin-bottom: 1rem; }

/* 5. Services (Tabs) Section */
.text-center { text-align: center; }
.text-center .section-title { margin-left: auto; margin-right: auto; }
.services-tabs-container { max-width: 900px; margin: 0 auto; background-color: var(--color-background-alt); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.tabs { display: flex; border-bottom: 1px solid var(--color-border); }
.tab-link { padding: 1.5rem 2rem; background: none; border: none; font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--color-text); cursor: pointer; transition: all var(--transition-speed) ease; position: relative; flex-grow: 1; }
.tab-link:hover { background-color: #f9f6f2; }
.tab-link.active { color: var(--color-headings); }
.tab-link.active::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; background-color: var(--color-accent); }
.tab-content-wrapper { padding: 3rem; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }
.tab-content h3 { margin-bottom: 1rem; }

/* 6. Audit CTA Section */
#audit-cta { background-color: var(--color-primary); color: #fff; }
#audit-cta .subtitle, #audit-cta h2, #audit-cta p { color: #fff; }
#audit-cta .subtitle { color: var(--color-accent); }
.audit-cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; align-items: center; }
.audit-cta-form form { display: flex; flex-direction: column; gap: 1rem; }
.audit-cta-form input { padding: 1rem; border: 1px solid var(--color-accent); background-color: #fff; font-family: var(--font-body); font-size: 1rem; }
.audit-cta-form input::placeholder { color: #999; }
.audit-cta-form .cta-button { width: 100%; }

/* 7. Team Section */
#team { background-color: var(--color-background-alt); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
.team-member { text-align: center; }
.team-photo { width: 150px; height: 150px; margin: 0 auto 1.5rem; background-color: var(--color-border); border-radius: 50%; /* Placeholder for image */ }
.team-member h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.team-member span { color: var(--color-accent); font-weight: 700; }

/* 8. FAQ (Accordion) Section */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.5rem 0; font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; color: var(--color-headings); cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; color: var(--color-accent); transition: transform var(--transition-speed) ease; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-speed) ease-in-out; }
.faq-answer p { padding: 0 0 1.5rem; }

/* 9. Testimonials Section */
#testimonials { background-color: var(--color-primary); }
.testimonial-slider-wrapper { max-width: 800px; margin: 0 auto; text-align: center; }
.quote { font-family: var(--font-heading); font-size: 2rem; color: #fff; line-height: 1.6; margin-bottom: 2rem; }
.author h4 { color: #fff; margin: 0; }
.author span { color: var(--color-accent); }

/* 10. Footer */
#main-footer { background-color: var(--color-primary); color: var(--color-background); padding: 80px 0 0; }
#main-footer .logo-text { color: var(--color-background); }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; padding-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-family: var(--font-body); font-weight: 700; }
.footer-col ul li { margin-bottom: 0.75rem; }
.footer-col a, .footer-col li, .footer-col p { color: rgba(244, 241, 236, 0.8); }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding: 25px 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-bottom p { margin: 0; color: rgba(244, 241, 236, 0.6); }

/* 11. Sub-Page Styles */
.page-header { padding-top: calc(var(--header-height) + 80px); padding-bottom: 40px; }
#contact-page .contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; background-color: var(--color-background-alt); border: 1px solid var(--color-border); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: 1px solid var(--color-headings); }
.contact-item h4 { margin-bottom: 0.5rem; }
.legal-content .container { max-width: 800px; }
.legal-content h2 { margin: 2.5rem 0 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: 0.5rem; }
.legal-content ul { list-style: disc; padding-left: 20px; }

/* 12. Animations & Keyframes */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-on-load { opacity: 0; transform: translateY(20px); animation: fadeIn-up 0.8s ease forwards; }
#hero .animate-on-load:nth-child(1) { animation-delay: 0.2s; }
#hero .animate-on-load:nth-child(2) { animation-delay: 0.4s; }
#hero .animate-on-load:nth-child(3) { animation-delay: 0.6s; }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.philosophy-card:nth-child(2) { transition-delay: 0.1s; }
.philosophy-card:nth-child(3) { transition-delay: 0.2s; }
@keyframes fadeIn-up { to { opacity: 1; transform: translateY(0); } }

/* 13. Responsive Media Queries */
@media (max-width: 992px) {
    #main-nav { position: fixed; top: 0; right: -100%; width: 60%; max-width: 300px; height: 100vh; background-color: var(--color-background-alt); flex-direction: column; justify-content: center; align-items: center; transition: right 0.4s ease-in-out; box-shadow: -10px 0 20px rgba(0,0,0,0.1); }
    #main-nav.is-active { right: 0; }
    .nav-links { flex-direction: column; text-align: center; gap: 20px; }
    .header-cta { display: none; }
    #hamburger-btn { display: block; z-index: 1001; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    #footer-brand { grid-column: 1 / -1; }
    #contact-page .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 3rem; } h2 { font-size: 2.5rem; }
    .tabs { flex-direction: column; }
    .tab-link { border-bottom: 1px solid var(--color-border); }
    .tab-link.active::after { display: none; }
}
@media (max-width: 576px) {
    h1 { font-size: 2.5rem; } h2 { font-size: 2.2rem; }
    .footer-grid { grid-template-columns: 1fr; }
}