/* CSS Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-charcoal);
    background-color: white;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

/* CSS Custom Properties */
:root {
    /* Colors */
    --color-navy: #0F1C2E;
    --color-teal: #2FA7A1;
    --color-mist: #F5F7FA;
    --color-charcoal: #30343F;
    --color-white: #FFFFFF;
    --color-success: #28a745;
    --color-error: #dc3545;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing (8-point grid) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 12px;
    --transition: all 0.3s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 28, 46, 0.1);
    --shadow-md: 0 4px 12px rgba(15, 28, 46, 0.15);
    --shadow-lg: 0 8px 24px rgba(15, 28, 46, 0.2);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-navy);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
}

.lead {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

/* Links */
a {
    color: var(--color-teal);
    text-decoration: none;
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--color-navy);
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-bottom: var(--space-sm);
    padding-left: var(--space-md);
}

li {
    margin-bottom: var(--space-xs);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    line-height: 1.4;
    font-size: 1rem;
}

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

.btn--primary:hover, .btn--primary:focus {
    background-color: var(--color-teal);
    border-color: var(--color-teal);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover, .btn--secondary:focus {
    background-color: var(--color-navy);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Elements */
.form-group {
    margin-bottom: var(--space-md);
}

label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--color-navy);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 2px solid #e0e7ff;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(47, 167, 161, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    min-width: 20px;
    min-height: 20px;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
    flex: 1;
}

.error-message {
    display: block;
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

.form-message {
    padding: var(--space-md);
    border-radius: var(--border-radius);
    margin-top: var(--space-md);
}

.form-message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Announcement Bar */
.announcement-bar {
    background-color: var(--color-teal);
    color: var(--color-white);
    text-align: center;
    padding: var(--space-xs) 0;
    font-size: 0.875rem;
}

.announcement-bar p {
    margin-bottom: 0px;
}

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) 0;
}

.logo a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy);
    text-decoration: none;
}

.logo a:hover {
    text-decoration: none;
    color: var(--color-teal);
}

.nav__list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-lg);
}

.nav__link {
    color: var(--color-charcoal);
    font-weight: 500;
    text-decoration: none;
    padding: var(--space-xs) 0;
    position: relative;
}

.nav__link:hover,
.nav__link:focus,
.nav__link--active {
    color: var(--color-teal);
    text-decoration: none;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-teal);
}

.header__cta {
    display: none;
}

/* Mobile Navigation */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--color-navy);
    border-radius: 2px;
    transition: var(--transition);
}

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

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

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

/* Mobile Menu */
.nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav.active .nav__list {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    gap: var(--space-md);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
    }
    
    .nav__list {
        display: flex;
        flex-direction: row;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .header__cta {
        display: inline-block;
    }
}

/* Hero Section */
.hero {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-mist) 0%, var(--color-white) 100%);
}

.hero__content {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.hero__title {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-charcoal);
    margin-bottom: var(--space-md);
}

.hero__bullets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.hero__bullets span {
    background-color: var(--color-teal);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.hero__image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .hero__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero__title {
        font-size: 3rem;
    }
    
    .hero__actions {
        flex-direction: row;
    }
}

/* Page Hero */
.page-hero {
    padding: var(--space-2xl) 0;
    background-color: var(--color-mist);
    text-align: center;
}

.page-hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-charcoal);
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Section */
.trust {
    padding: var(--space-lg) 0;
    text-align: center;
}

.trust__badge {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background-color: var(--color-mist);
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--color-navy);
}

/* Services Overview */
.services-overview {
    padding: var(--space-3xl) 0;
}

.services-grid {
    display: grid;
    gap: var(--space-xl);
}

.service-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.service-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.service-card__title {
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

.service-card__description {
    color: var(--color-charcoal);
}

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

/* About Preview */
.about-preview {
    padding: var(--space-3xl) 0;
    background-color: var(--color-mist);
}

.about-preview__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-preview__content h2 {
    margin-bottom: var(--space-md);
}

.about-preview__content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

/* Featured Testimonial */
.testimonial-featured {
    padding: var(--space-3xl) 0;
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-style: italic;
}

.testimonial p {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.testimonial cite {
    font-style: normal;
    font-weight: 500;
    color: var(--color-navy);
}

/* CTA Section */
.cta-section {
    padding: var(--space-3xl) 0;
    background-color: var(--color-navy);
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.cta-content p {
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.cta-section .btn--primary {
    background-color: var(--color-teal);
    border-color: var(--color-teal);
}

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

/* About Page Styles */
.about-content {
    padding: var(--space-3xl) 0;
}

.about-grid {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.content-block {
    max-width: 100%;
}

.content-block h2 {
    margin-bottom: var(--space-md);
}

.content-block p {
    margin-bottom: var(--space-md);
}

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

/* How I Work */
.how-i-work {
    padding: var(--space-3xl) 0;
    background-color: var(--color-mist);
}

.how-i-work h2 {
    text-align: center;
}

.process-steps {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.step {
    text-align: center;
}

.step__number {
    width: 60px;
    height: 60px;
    background-color: var(--color-teal);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 auto var(--space-md);
}

.step h3 {
    margin-bottom: var(--space-sm);
}

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

/* Credentials */
.credentials {
    padding: var(--space-3xl) 0;
}

.credentials h2 {
    text-align: center;
}

.credentials-grid {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.credential-item {
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.credential-item h3 {
    color: var(--color-navy);
    margin-bottom: var(--space-sm);
}

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

/* Services Detail */
.services-intro {
    padding: var(--space-lg) 0;
    text-align: center;
}

.services-detail {
    padding: var(--space-3xl) 0;
}

.service-block {
    margin-bottom: var(--space-3xl);
}

.service-block__content {
    display: grid;
    gap: var(--space-xl);
    align-items: center;
}

.service-block__text h2 {
    margin-bottom: var(--space-md);
}

.service-block__text h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--color-teal);
}

.service-block__image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .service-block__content {
        grid-template-columns: 1fr 1fr;
    }
    
    .service-block--reverse .service-block__content {
        direction: rtl;
    }
    
    .service-block--reverse .service-block__text {
        direction: ltr;
    }
}

/* Pricing Info */
.pricing-info {
    padding: var(--space-xl) 0;
    background-color: var(--color-mist);
}

.pricing-block {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Testimonials */
.testimonials-section {
    padding: var(--space-3xl) 0;
}

.testimonials-grid {
    display: grid;
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-xl);
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.testimonial-card__rating {
    color: #ffc107;
    margin-bottom: var(--space-md);
    font-size: 1.125rem;
}

.testimonial-card blockquote {
    margin-bottom: var(--space-md);
}

.testimonial-card blockquote p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-card cite {
    font-style: normal;
    font-weight: 500;
    color: var(--color-navy);
}

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

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

.testimonials-image {
    padding: var(--space-xl) 0;
}

.image-block img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    margin: 0 auto;
}

/* FAQs */
.faqs-section {
    padding: var(--space-3xl) 0;
}

.faqs-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    width: 100%;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-teal);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-teal);
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: var(--space-md);
}

/* Contact Page */
.contact-section {
    padding: var(--space-3xl) 0;
}

.contact-grid {
    display: grid;
    gap: var(--space-3xl);
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.contact-info {
    background-color: var(--color-mist);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
}

.contact-details {
    margin-top: var(--space-md);
}

.contact-item {
    margin-bottom: var(--space-md);
}

.contact-item h4 {
    margin-bottom: var(--space-xs);
    color: var(--color-navy);
}

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

/* Privacy Page */
.privacy-content {
    padding: var(--space-3xl) 0;
}

.privacy-sections {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: var(--space-3xl);
}

.privacy-section h2 {
    margin-bottom: var(--space-md);
}

.privacy-section ul {
    margin-bottom: var(--space-md);
}

/* Footer */
.footer {
    background-color: var(--color-navy);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__content {
    display: grid;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer h3,
.footer h4 {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: var(--space-xs);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer__links a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

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

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
}

.sticky-cta .btn {
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
}

@media (min-width: 768px) {
    .sticky-cta {
        display: none;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-md);
    left: var(--space-md);
    width: 48px;
    height: 48px;
    background-color: var(--color-teal);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--color-navy);
    transform: translateY(-2px);
}

/* Responsive Typography */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .hero__title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    .hero__title {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .sticky-cta,
    .back-to-top,
    .announcement-bar {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    .page-hero,
    .cta-section {
        background: none !important;
        color: black !important;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --color-navy: #000000;
        --color-charcoal: #000000;
        --color-teal: #0066cc;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
