/* 
 * Main Stylesheet for domain.com
 * Accounting Services Website
 */

/* ======= VARIABLES ======= */
:root {
    /* Color Palette */
    --primary: #083B4C;          /* Midnight Teal */
    --secondary: #F57C00;        /* Tangerine Punch */
    --accent: #C1E1C1;           /* Pistachio Mist */
    --background: #F3E9D2;       /* Antique Linen */
    --text: #2E2E2E;             /* Graphite Gray */
    --highlight: #0E9AA7;        /* Sapphire Glow */
    
    /* Spacing */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 1rem);
    --space-md: clamp(1rem, 2vw, 2rem);
    --space-lg: clamp(2rem, 4vw, 4rem);
    --space-xl: clamp(3rem, 6vw, 6rem);
    
    /* Typography */
    --font-size-base: clamp(1rem, 1vw + 0.25rem, 1.25rem);
    --font-size-lg: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
    --font-size-xl: clamp(1.5rem, 2vw + 0.75rem, 2.5rem);
    --font-size-2xl: clamp(2rem, 3vw + 1rem, 3.5rem);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ======= RESET & BASE STYLES ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--highlight);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--secondary);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

h1 {
    font-size: var(--font-size-2xl);
}

h2 {
    font-size: var(--font-size-xl);
    position: relative;
    padding-bottom: var(--space-sm);
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    height: 4px;
    width: 60px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
}

h3 {
    font-size: var(--font-size-lg);
}

p {
    margin-bottom: var(--space-md);
}

/* ======= BUTTONS ======= */
.cta-button, .submit-button {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover, .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.service-link {
    display: inline-block;
    position: relative;
    padding-bottom: 2px;
    font-weight: 500;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--secondary), var(--highlight));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform var(--transition-normal);
}

.service-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* ======= HEADER & NAVIGATION ======= */
.site-header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu ul {
    display: flex;
    gap: var(--space-md);
}

.nav-menu a {
    color: var(--text);
    font-weight: 600;
    position: relative;
    padding-bottom: 3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

.nav-menu a:hover::after, .nav-menu a:focus::after {
    transform: scaleX(1);
}

.nav-cta {
    background-color: var(--primary);
    color: white !important;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.nav-cta:hover, .nav-cta:focus {
    background-color: var(--secondary);
}

.nav-cta::after {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
}

/* Mobile navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
    }
    
    .mobile-menu-toggle .bar {
        height: 3px;
        width: 100%;
        background: linear-gradient(to right, var(--primary), var(--secondary));
        border-radius: var(--radius-sm);
        transition: transform var(--transition-normal);
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 80%;
        height: 100%;
        background-color: white;
        box-shadow: var(--shadow-lg);
        transition: right var(--transition-normal);
        padding: var(--space-md);
        z-index: 90;
    }
    
    .nav-menu.visible {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .nav-menu a {
        display: block;
        font-size: var(--font-size-lg);
    }
}

/* ======= HERO SECTION ======= */
.hero {
    background: linear-gradient(135deg, rgba(8, 59, 76, 0.9), rgba(245, 124, 0, 0.8)), url('../img/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: var(--space-xl) 0;
    margin-bottom: var(--space-xl);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--background);
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0% 100%);
}

.logo-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, white, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: var(--space-md);
    animation: fadeInDown 1s ease-out;
}

.tagline {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Anchor point */
.anchor-point {
    display: block;
    position: relative;
    top: -120px;
    visibility: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.about-text {
    animation: slideInLeft 1s ease-out;
}

.about-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: slideInRight 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        order: 2;
    }
    
    .image-placeholder {
        order: 1;
        height: 200px;
    }
}

/* ======= SERVICES SECTION ======= */
.services {
    padding: var(--space-xl) 0;
    background-color: white;
    position: relative;
}

.services::before, .services::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 80px;
    background-color: var(--background);
    left: 0;
}

.services::before {
    top: -40px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}

.services::after {
    bottom: -40px;
    clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    margin-bottom: var(--space-md);
    overflow: hidden;
    border-radius: var(--radius-md);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

/* ======= BENEFITS SECTION ======= */
.benefits {
    padding: var(--space-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.benefit-item {
    padding: var(--space-md);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.benefit-icon {
    width: 64px;
    height: 64px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.benefit-item:hover {
    transform: scale(1.05);
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials {
    padding: var(--space-xl) 0;
    background-color: white;
    position: relative;
}

.testimonials::before, .testimonials::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 80px;
    background-color: var(--background);
    left: 0;
}

.testimonials::before {
    top: -40px;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
}

.testimonials::after {
    bottom: -40px;
    clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

.testimonial-carousel {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: var(--space-sm) 0;
}

.testimonial-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

.testimonial-card {
    min-width: 300px;
    width: 300px;
    margin: 0 var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, rgba(8, 59, 76, 0.05), rgba(245, 124, 0, 0.05));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: 600;
}

/* ======= PRICING SECTION ======= */
.pricing {
    padding: var(--space-xl) 0;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.pricing-column {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
}

.pricing-column:hover {
    transform: translateY(-10px);
}

.pricing-column.featured {
    transform: scale(1.05);
    border: 2px solid var(--secondary);
}

.pricing-column.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    color: white;
    padding: var(--space-md);
    text-align: center;
}

.pricing-header h3 {
    color: white;
    margin-bottom: var(--space-xs);
}

.price {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.price span {
    font-size: var(--font-size-base);
    font-weight: 400;
    opacity: 0.8;
}

.pricing-features {
    padding: var(--space-md);
}

.pricing-features ul li {
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 25px;
}

.pricing-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.pricing-features ul li.not-included {
    color: rgba(46, 46, 46, 0.5);
    text-decoration: line-through;
}

.pricing-features ul li.not-included::before {
    content: '×';
    color: #ccc;
}

.pricing-footer {
    text-align: center;
    padding: var(--space-md);
    padding-top: 0;
}

/* ======= ORDER FORM SECTION ======= */
.order-form {
    padding: var(--space-xl) 0;
    background-color: white;
    position: relative;
}

.order-form::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--background);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}

.form-section-diagonal {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: linear-gradient(135deg, white, rgba(193, 225, 193, 0.3));
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.form-section-diagonal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49.9%, var(--accent) 50%, transparent 51%);
    z-index: -1;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.form-group input, .form-group select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: var(--space-sm);
}

.form-group.checkbox label {
    margin-bottom: 0;
}

.submit-button {
    width: 100%;
    font-size: var(--font-size-lg);
    padding: var(--space-sm) var(--space-md);
}

/* ======= CONTACT SECTION ======= */
.contact {
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: var(--space-md);
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    min-width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--highlight));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-md);
    color: white;
}

.contact-text h3 {
    margin-bottom: var(--space-xs);
}

/* ======= FOOTER ======= */
.site-footer {
    background-color: var(--primary);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-section.about p {
    opacity: 0.8;
}

.footer-section.links ul li, .footer-section.legal ul li {
    margin-bottom: var(--space-xs);
}

.footer-section.links a, .footer-section.legal a {
    color: white;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-section.links a:hover, .footer-section.legal a:hover {
    opacity: 1;
}

.footer-section.contact address {
    font-style: normal;
    opacity: 0.8;
}

.footer-section.contact p {
    margin-bottom: var(--space-xs);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
    opacity: 0.6;
}

/* ======= COOKIE POPUP ======= */
.cookie-popup {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    max-width: 350px;
    padding: var(--space-md);
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.cookie-popup.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-popup p {
    margin-bottom: var(--space-sm);
    font-size: 0.9em;
}

#accept-cookies {
    align-self: flex-end;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

#accept-cookies:hover {
    transform: scale(1.05);
}

/* ======= RESPONSIVE ADJUSTMENTS ======= */
@media (max-width: 992px) {
    .services-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid, .benefits-grid, .pricing-table {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        min-width: 250px;
        width: 250px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }
    
    .form-section-diagonal::before {
        background: linear-gradient(45deg, transparent 45%, var(--accent) 46%, transparent 55%);
    }
}

/* ======= ANIMATIONS ======= */
.service-card, .benefit-item, .pricing-column, .contact-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======= POLICY PAGES STYLING ======= */
.policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
}

.policy-content {
    background-color: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--accent);
    position: relative;
}

.policy-content::before {
    content: '';
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    bottom: var(--space-md);
    left: var(--space-md);
    border: 1px solid var(--primary);
    border-radius: calc(var(--radius-lg) - var(--space-xs));
    opacity: 0.1;
    pointer-events: none;
}

.policy-content h1 {
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--primary);
}

.policy-content h2 {
    margin-top: var(--space-lg);
    color: var(--primary);
}

.policy-content p {
    margin-bottom: var(--space-md);
}

.policy-content ul {
    list-style: disc;
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.policy-content ul li {
    margin-bottom: var(--space-xs);
}

.policy-date {
    text-align: right;
    margin-top: var(--space-lg);
    font-style: italic;
    opacity: 0.7;
}