/* 
 * Main stylesheet for Domain - Accounting Services
 * Color palette:
 * - Main background: #FEF9F3 (cream-beige)
 * - Accent blocks: #D9376E (berry pink), #4C5B5C (coal gray)
 * - Headings: #1E1E1E
 * - Text: #3A3A3A
 * - Buttons: #FFD166 (mustard yellow)
 * - Gradients: berry → mustard with light transparency
 */

/* ---------- Base styles ---------- */
:root {
    --color-background: #FEF9F3;
    --color-accent-1: #D9376E;
    --color-accent-2: #4C5B5C;
    --color-heading: #1E1E1E;
    --color-text: #3A3A3A;
    --color-button: #FFD166;
    --color-button-hover: #FFE599;
    --gradient-main: linear-gradient(135deg, rgba(217, 55, 110, 0.8) 0%, rgba(255, 209, 102, 0.8) 100%);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-standard: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

/* Container for all sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-accent-1);
    text-decoration: none;
    transition: var(--transition-standard);
}

a:hover {
    color: var(--color-accent-2);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1rem;
    margin-left: 1.25rem;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-standard);
    box-shadow: var(--shadow-sm);
    border: none;
}
.elem {
    display: inline-block;
    padding: 0.75rem 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--color-button);
    color: var(--color-heading);
}

.btn-primary:hover {
    background-color: var(--color-button-hover);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-accent-2);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a696a;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: #fff;
}

/* Section styling */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--color-accent-1);
    font-weight: 500;
    margin-top: -0.5rem;
}

/* ---------- Header & Navigation ---------- */
.site-header {
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    text-decoration: none;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-1);
    position: relative;
}

/* Desktop navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.desktop-nav li {
    margin-left: 1.5rem;
}

.desktop-nav a {
    color: var(--color-heading);
    font-weight: 500;
    padding: 0.5rem;
    text-decoration: none;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--color-accent-1);
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
    padding: 0;
}

.menu-toggle span {
    background-color: var(--color-heading);
    display: block;
    height: 2px;
    width: 25px;
    transition: var(--transition-standard);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile navigation */
.mobile-nav {
    background-color: #fff;
    box-shadow: var(--shadow-md);
    left: 0;
    padding: 1rem;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 999;
}

.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin: 0;
}

.mobile-nav a {
    color: var(--color-heading);
    display: block;
    font-weight: 500;
    padding: 0.75rem 0;
    text-decoration: none;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--color-accent-1);
}

/* ---------- Hero section ---------- */
.hero-section {
    padding-top: 8rem;
    padding-bottom: 5rem;
    background-color: #fff;
}

.hero-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 2rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ---------- About section ---------- */
.about-section {
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

/* CSS-only animation for the background */
.animated-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(217, 55, 110, 0.1) 0%, rgba(255, 209, 102, 0.1) 50%, rgba(76, 91, 92, 0.1) 100%);
    z-index: -1;
    transform-origin: center;
    animation: pulse 15s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-features {
    margin-top: 1.5rem;
}

.about-features li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-features li::before {
    content: "✓";
    color: var(--color-accent-1);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ---------- Services section ---------- */
.services-section {
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition-standard);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* CSS icons using background gradients */
.service-icon-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9376E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
}

.service-icon-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9376E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'%3E%3C/path%3E%3C/svg%3E");
}

.service-icon-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9376E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='9' cy='7' r='4'%3E%3C/circle%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'%3E%3C/path%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'%3E%3C/path%3E%3C/svg%3E");
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* ---------- Why us section ---------- */
.why-us-section {
    background: var(--gradient-main);
    color: #fff;
}

.why-us-section .section-header h2,
.why-us-section .section-subtitle {
    color: #fff;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: relative;
    transition: var(--transition-standard);
}

.why-us-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.why-us-number {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.why-us-item h3 {
    color: #fff;
    margin-bottom: 0.75rem;
}

/* ---------- Testimonials section ---------- */
.testimonials-section {
    background-color: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    transition: var(--transition-standard);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
    padding-top: 1rem;
}



.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-accent-2);
    margin-right: 1rem;
}

.testimonial-info h4 {
    margin-bottom: 0;
}

.testimonial-info p {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ---------- Contact section ---------- */
.contact-section {
    background-color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: var(--color-accent-1);
}

.contact-map {
    margin-top: 2rem;
}

.contact-map img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

/* Contact form styling */
.contact-form {
    background-color: var(--color-background);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: var(--color-accent-1);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius-sm);
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-standard);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-1);
    box-shadow: 0 0 0 3px rgba(217, 55, 110, 0.1);
}

/* Checkbox styling */
.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    font-size: 0.875rem;
}

/* Error messages */
.error-messages {
    background-color: #ffe6e6;
    border-left: 4px solid #ff3333;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius-sm);
}

.error-messages ul {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background-color: var(--color-accent-2);
    color: #fff;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.footer-links,
.contact-info {
    list-style: none;
    margin-left: 0;
}

.footer-links li,
.contact-info li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-links a:hover,
.contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ---------- Thank You page ---------- */
.thankyou-section {
    padding: 8rem 0;
    background-color: var(--color-background);
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.thankyou-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D9376E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 2rem;
}

.thankyou-content h1 {
    color: var(--color-accent-1);
    margin-bottom: 1.5rem;
}

.thankyou-buttons {
    margin-top: 2rem;
}

/* ---------- Policy pages ---------- */
.policy-section {
    padding: 8rem 0 5rem;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
}

.policy-content h1 {
    color: var(--color-accent-1);
    margin-bottom: 1rem;
}

.policy-date {
    color: var(--color-accent-2);
    font-style: italic;
    margin-bottom: 2rem;
}

.policy-text h2 {
    color: var(--color-accent-2);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

/* ---------- Cookie popup ---------- */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.cookie-popup.hide {
    transform: translateY(100%);
}

.cookie-popup p {
    margin: 0 1rem 0 0;
    font-size: 0.875rem;
}

.cookie-popup button {
    background-color: var(--color-button);
    color: var(--color-heading);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    white-space: nowrap;
}

.cookie-popup button:hover {
    background-color: var(--color-button-hover);
}

/* ---------- Media queries ---------- */
/* For tablets and larger screens */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .about-features {
        column-count: 2;
        column-gap: 2rem;
    }
    
    .cookie-popup {
        padding: 1rem 2rem;
    }
}

/* For mobile devices */
@media (max-width: 767px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-content,
    .hero-image {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .contact-grid {
        gap: 2rem;
    }
    
    .cookie-popup {
        flex-direction: column;
        padding: 1rem;
    }
    
    .cookie-popup p {
        margin: 0 0 1rem 0;
        text-align: center;
    }
}

/* For extra small mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .why-us-item {
        padding: 1.5rem;
    }
    
    .why-us-number {
        font-size: 2.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .thankyou-content {
        padding: 2rem 1.5rem;
    }
}
