/* ===================
   PHY CPA - Stylesheet
   Forest Green & Gold Theme - Professional, Growth-Focused
   =================== */

/* ===================
   CSS Variables
   =================== */
:root {
    --primary-color: #2d5a45;      /* Forest green - money/growth */
    --secondary-color: #3d7a5f;    /* Lighter forest green */
    --accent-color: #d4a84b;       /* Gold - classic financial */
    --accent-light: #e5c06b;       /* Lighter gold */
    --text-color: #2d3748;
    --text-light: #5a6a7a;
    --bg-light: #f8f6f3;           /* Warm off-white */
    --bg-warm: #f3efe9;            /* Warmer background */
    --white: #ffffff;
    --font-heading: 'DM Serif Display', Georgia, serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.3;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ===================
   Buttons
   =================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--accent-light);
}

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

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

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

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

.btn-large {
    padding: 18px 40px;
    font-size: 15px;
}

/* ===================
   Top Bar
   =================== */
.top-bar {
    background-color: var(--primary-color);
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}

.top-bar-item {
    color: rgba(255,255,255,0.9);
}

.top-bar-item a {
    color: rgba(255,255,255,0.9);
    transition: color 0.3s ease;
}

.top-bar-item a:hover {
    color: var(--white);
}

/* ===================
   Header
   =================== */
.main-header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--accent-color);
}

.logo-tagline {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
    padding: 5px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-color);
}

.header-cta .btn {
    padding: 12px 24px;
}

/* ===================
   Hero Section - Full Width Background
   =================== */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(45, 90, 69, 0.85) 0%, rgba(61, 122, 95, 0.75) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content.centered {
    text-align: center;
}

.hero-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero h1 {
    font-size: 52px;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 35px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ===================
   Services Preview
   =================== */
.services-preview {
    padding: 100px 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.warm-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 25px auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 50px 35px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================
   Why Choose Section
   =================== */
.why-choose {
    padding: 100px 0;
    background-color: var(--bg-warm);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.why-content h2 {
    font-size: 42px;
    margin-bottom: 25px;
}

.why-content > p {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

.why-features {
    list-style: none;
}

.why-features li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
}

.why-features .check {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
}

/* ===================
   Dual Practice Banner
   =================== */
.dual-practice {
    padding: 80px 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.dual-practice h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 20px;
}

.dual-practice p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.dual-practice .btn-outline {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.dual-practice .btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* ===================
   CTA Section
   =================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 35px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* ===================
   Footer
   =================== */
.main-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-about p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: rgba(255,255,255,0.7);
    font-size: 15px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

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

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: rgba(255,255,255,0.7);
    margin-right: 15px;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: 25px;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: color 0.3s ease;
}

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

.site-credit {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    transition: color 0.3s ease;
}

.site-credit:hover {
    color: rgba(255,255,255,0.7);
}

/* ===================
   Page Hero (Inner Pages)
   =================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ===================
   About Page
   =================== */
.about-intro {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.about-title {
    font-size: 16px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
}

.credentials-list {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.credentials-list h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

.credentials-list ul {
    list-style: disc;
    padding-left: 20px;
}

.credentials-list li {
    margin-bottom: 8px;
    color: var(--text-color);
}

/* ===================
   Services Page
   =================== */
.services-intro {
    padding: 80px 0;
    background: var(--bg-light);
    text-align: center;
}

.services-intro .intro-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.services-intro p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
}

.service-detail {
    padding: 80px 0;
}

.service-detail.alt-bg {
    background: var(--bg-light);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
}

.service-detail-grid.reverse {
    grid-template-columns: 350px 1fr;
}

.service-detail-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.service-detail-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-color);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.service-detail-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* ===================
   Contact Page
   =================== */
.contact-section {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.contact-info > p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 35px;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method h4 {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-method p {
    font-size: 16px;
    color: var(--text-color);
}

.contact-method a {
    color: var(--primary-color);
    font-weight: 600;
}

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

.contact-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
}

.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: var(--white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

/* ===================
   Mobile Menu
   =================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

body.menu-open {
    overflow: hidden;
}

/* ===================
   Responsive
   =================== */
@media (max-width: 992px) {
    .hero {
        min-height: 500px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .why-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

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

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-header .container {
        flex-wrap: wrap;
        gap: 15px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav ul li {
        border-bottom: 1px solid var(--bg-light);
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
    }

    .header-cta {
        display: none;
    }

    .hero {
        min-height: 450px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .section-header h2,
    .why-content h2,
    .cta-section h2 {
        font-size: 32px;
    }

    .page-hero h1 {
        font-size: 36px;
    }

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

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .service-detail-grid,
    .service-detail-grid.reverse {
        grid-template-columns: 1fr;
    }

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

    .contact-methods {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
