/* 
 * domain - Accounting Services Website Stylesheet
 * Color Palette:
 * - Main Background: #F4F2ED (milk-beige)
 * - Accents: #FF6A00 (bright orange), #004AAD (electric blue)
 * - Text: #1F1F1F (deep coal-black)
 * - Buttons/Links: gradient from #FF6A00 to #FFC300
 */

/* ---------- Base Styles ---------- */
:root {
    --bg-main: #F4F2ED;
    --accent-orange: #FF6A00;
    --accent-blue: #004AAD;
    --text-color: #1F1F1F;
    --gradient-start: #FF6A00;
    --gradient-end: #FFC300;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Responsive typography using clamp */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4rem);
    --fs-h2: clamp(2rem, 3vw + 1rem, 3rem);
    --fs-h3: clamp(1.5rem, 2vw + 1rem, 2rem);
    --fs-body: clamp(1rem, 1vw + 0.5rem, 1.125rem);
    --fs-small: clamp(0.875rem, 0.5vw + 0.75rem, 1rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
    position: relative;
    margin-bottom: 2.5rem;
}


.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    font-size: var(--fs-body);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
}

.btn-outline:hover {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
}

.cta-btn {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
    color: white !important;
    background-color: transparent !important;
    box-shadow: 0 3px 8px rgba(255, 106, 0, 0.3) !important;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

/* ---------- Header Styles ---------- */
.main-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent-blue);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.logo a:hover {
    color: var(--accent-orange);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    position: relative;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-orange);
    background-color: rgba(255, 106, 0, 0.1);
    box-shadow: 0 2px 0 var(--accent-orange);
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
}

.mobile-nav {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
}

.menu-toggle-input {
    display: none;
}

.menu-toggle-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 110;
}

.menu-icon {
    position: relative;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: var(--transition);
}

.menu-icon::before {
    transform: translateY(-8px);
}

.menu-icon::after {
    transform: translateY(8px);
}

.menu-toggle-input:checked + .menu-toggle-label .menu-icon {
    background-color: transparent;
}

.menu-toggle-input:checked + .menu-toggle-label .menu-icon::before {
    transform: rotate(45deg);
}

.menu-toggle-input:checked + .menu-toggle-label .menu-icon::after {
    transform: rotate(-45deg);
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-x: hidden;
        transition: var(--transition);
        z-index: 100;
        padding-top: 5rem;
    }
    
    .menu-toggle-input:checked ~ .mobile-nav {
        right: 0;
        padding: 1rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .mobile-nav li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .mobile-nav a {
        display: block;
        padding: 0.75rem;
        width: 100%;
        text-align: left;
        border-left: 3px solid transparent;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a.active {
        background-color: rgba(255, 106, 0, 0.05);
        box-shadow: none;
        border-left: 3px solid var(--accent-orange);
    }
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('./img/ZVgWfA.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.5rem);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    max-width: 400px;
}

/* ---------- About Section ---------- */
.about {
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* ---------- Services Section ---------- */
.services {
    background-color: rgba(0, 74, 173, 0.05);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-icon:hover img {
    transform: scale(1.05);
}

/* ---------- Testimonials Section ---------- */
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    padding-top: 2rem;
}

.testimonial-quote {
    font-size: 1.5rem;
    color: var(--accent-orange);
    position: absolute;
    top: 1rem;
    left: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    font-size: var(--fs-small);
}

.author-info p {
    margin-bottom: 0;
    font-size: calc(var(--fs-small) - 0.125rem);
    opacity: 0.8;
}

/* ---------- How We Work Section ---------- */
.how-we-work {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('./img/XIrREm.jpg') no-repeat center center;
    background-size: cover;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step-item {
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 106, 0, 0.1);
    position: absolute;
    top: -1rem;
    left: -1rem;
    z-index: -1;
    line-height: 1;
}

/* ---------- Contact Section ---------- */
.contact {
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2.5rem;
}

.form-title {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    margin-top: 0.25rem;
}

.checkbox-group label {
    font-size: var(--fs-small);
}

/* ---------- FAQ Section ---------- */
.faq {
    background-color: rgba(0, 74, 173, 0.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    border: none;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
    text-decoration: none;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem;
}

/* Pure CSS FAQ Toggle (No JS) */
.faq-question:focus + .faq-answer,
.faq-answer:target,
.faq-answer:focus {
    max-height: 500px;
    padding: 0 0 1.5rem;
}

.faq-question:focus:after,
.faq-answer:target ~ .faq-question:after,
.faq-answer:focus ~ .faq-question:after {
    content: '−';
}

/* ---------- Footer ---------- */
.main-footer {
    background-color: var(--text-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.footer-links h4,
.footer-legal h4 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-orange);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: var(--fs-small);
    opacity: 0.7;
    margin-bottom: 0;
}

/* ---------- Cookie Popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: bottom 0.5s ease-in-out;
}

.cookie-popup.hide {
    bottom: -100%;
}

.cookie-popup p {
    margin: 0;
    flex: 1;
    padding-right: 2rem;
}

.cookie-popup button {
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-popup button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* ---------- Policy Pages ---------- */
.policy-page {
    padding: 5rem 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.policy-title {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h3 {
    margin-bottom: 1.25rem;
    color: var(--accent-blue);
}

/* ---------- Thanks Page ---------- */
.thanks-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 0;
}

.thanks-container {
    max-width: 700px;
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
}

.thanks-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    color: white;
    font-size: 3rem;
}

/* ---------- Responsive Design ---------- */
@media (max-width: 992px) {
    section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: 70vh;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        min-height: 60vh;
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    section {
        padding: 2.5rem 0;
    }
    
    .container {
        width: 95%;
        padding: 0 2.5%;
    }
    
    .cookie-popup {
        flex-direction: column;
        padding: 1rem;
    }
    
    .cookie-popup p {
        margin-bottom: 1rem;
        padding-right: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .policy-container {
        padding: 1.5rem;
    }
}

/* ---------- Custom Animations ---------- */
/* Using only CSS, no JavaScript */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-subtitle {
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s 0.4s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Reveal elements using pure CSS instead of JavaScript */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 1;
    transition: all 0.8s ease;
}

.reveal-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.reveal-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.reveal-up {
    animation: fadeInUp 0.8s ease-out forwards;
}
