/* Rtax Accounting & Advisory Services - Corporate Design System */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

:root {
    /* Color Palette */
    --primary: #0F2942;         /* Dark Navy - Corporate & Trustworthy */
    --secondary: #1E40AF;       /* Professional Royal Blue - Call-to-actions */
    --accent: #2563EB;          /* Slate/Electric Blue */
    --gold: #C5A880;            /* Muted Warm Gold - Premium accents */
    --gold-hover: #B4946C;
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;        /* Cool Slate Light */
    --bg-card: #FFFFFF;
    
    --text-primary: #0F172A;    /* Slate-900 */
    --text-muted: #475569;      /* Slate-600 */
    --text-light: #94A3B8;      /* Slate-400 */
    --text-white: #FFFFFF;
    
    --border-color: #E2E8F0;    /* Slate-200 */
    --border-hover: #CBD5E1;    /* Slate-300 */
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03), 0 1px 2px rgba(15, 23, 42, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.05), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset & Global Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-white);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

/* Reusable Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

.text-center {
    text-align: center;
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 4rem auto;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--gold);
    margin: 1rem auto 0 auto;
}

.section-header.text-left .section-title::after {
    margin: 1rem 0 0 0;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary);
    font-weight: 600;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
header {
    background-color: var(--bg-white);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.logo-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    fill: none;
    stroke-width: 2.5;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    background-color: var(--primary);
    color: var(--text-white);
    padding: 8rem 0 9rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Overlay for readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 40%, rgba(15, 41, 66, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-tag {
    color: var(--gold);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.15em;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--border-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
}

/* Cards (General layout for services, features, values) */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

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

.card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon-wrapper {
    background-color: var(--primary);
}

.card:hover .card-icon-wrapper svg {
    stroke: var(--bg-white);
}

.card-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    transition: var(--transition);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-body); /* Using modern font for details */
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Commitment Panel */
.commitment-panel {
    padding: 3rem;
}

/* Why Choose Us Section */
.why-features {
    margin-top: 2rem;
}

.why-feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.why-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(30, 64, 175, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    stroke-width: 2.5;
    fill: none;
}

.why-feature-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.why-feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Call to Action Banner */
.cta-banner {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: var(--text-white);
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    color: var(--border-color);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Core Values Page Styles */
.about-intro-img {
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--bg-white);
}

.values-grid {
    margin-top: 3rem;
}

/* Detailed Services page layouts */
.services-category-block {
    margin-bottom: 6rem;
}

.services-category-block:last-child {
    margin-bottom: 0;
}

.category-header {
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.category-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

.service-sub-card {
    background: var(--bg-white);
    border-left: 3px solid var(--primary);
}

.service-sub-card:hover {
    border-left-color: var(--gold);
}

/* Contact page styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-panel {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 3.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h2 {
    color: var(--text-white);
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.contact-info-desc {
    color: var(--border-color);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.contact-hours-block {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}

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

.contact-method-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
}

.contact-method-details h3 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 0.35rem;
}

.contact-method-details p {
    font-size: 1.125rem;
    line-height: 1.4;
}

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

/* Contact Form Styles */
.contact-form-panel {
    background-color: var(--bg-white);
    padding: 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

input, select, textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
    background-color: var(--bg-light);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(15, 41, 66, 0.08);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Form success message */
.form-status {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-status.success {
    background-color: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
    display: block;
}

.form-status.error {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
    display: block;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-white);
    padding: 5rem 0 2rem 0;
    border-top: 5px solid var(--gold);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    color: var(--text-white);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--border-color);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 300;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.85rem;
}

.footer-links a {
    color: var(--border-color);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact-info {
    color: var(--border-color);
    font-size: 0.95rem;
}

.footer-contact-info p {
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Media Queries (Responsiveness) */

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .commitment-panel {
        padding: 2rem 1.5rem;
    }
    
    /* Header mobile navigation */
    .header-cta {
        display: none; /* Hide desktop CTA */
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 0;
        padding-top: 2rem;
        z-index: 99;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: left;
    }
    
    .nav-link.active {
        border-left: 4px solid var(--gold);
        background-color: var(--bg-light);
        padding-left: calc(2.5rem - 4px);
        color: var(--primary);
        font-weight: 600;
    }
    
    .nav-link::after {
        display: none;
    }

    /* Hide Services Subnav Scrollbars */
    .services-subnav {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    .services-subnav::-webkit-scrollbar {
        display: none;  /* Chrome, Safari and Opera */
    }
    
    /* Hero Section Responsive */
    .hero {
        padding: 6rem 0 7rem 0;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-sub {
        font-size: 1.1rem;
    }
    
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Contact Page Responsive */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info-panel {
        padding: 2rem 1.5rem;
    }

    .contact-info-desc {
        margin-bottom: 2rem;
    }

    .contact-hours-block {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .contact-method-details p,
    .contact-method-details a {
        font-size: 1rem;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}
