/* =====================================================
   Domain.com - CSS Styles for Financial Audit Company
   ===================================================== */

/* === CSS VARIABLES === */
:root {
    --primary-bg: #F3F0FF;
    --accent-color: #6246EA;
    --secondary-color: #FFC6AC;
    --text-color: #2B2D42;
    --white: #FFFFFF;
    --shadow: rgba(98, 70, 234, 0.1);
    --gradient-1: linear-gradient(135deg, #6246EA 0%, #8B5CF6 100%);
    --gradient-2: linear-gradient(135deg, #FFC6AC 0%, #FFB39C 100%);
    --gradient-3: linear-gradient(135deg, #6246EA 0%, #FFC6AC 100%);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* === GLOBAL RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === HEADER === */
.header {
    background: var(--gradient-1);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--white);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* === MAIN CONTAINER === */
.main-container {
    margin-top: 80px;
}

/* Ensure proper spacing on mobile and tablets */
@media (max-width: 768px) {
    .main-container {
        margin-top: 85px;
    }
    
    .header {
        padding: 0.8rem 0;
        box-shadow: 0 2px 15px var(--shadow);
    }
}

/* Extra spacing for very small mobile devices */
@media (max-width: 480px) {
    .main-container {
        margin-top: 80px;
    }
    
    .header {
        padding: 0.7rem 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* === SECTIONS === */
.section {
    padding: 4rem 0;
    animation: fadeInUp 0.8s ease;
}

.section:nth-child(even) {
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

/* === HERO SECTION === */
.hero {
    background: var(--gradient-3);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: slideIn 20s linear infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 198, 172, 0.3);
    animation: pulse 1.5s infinite;
}

/* === GRID LAYOUTS === */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

/* === CARDS === */
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(98, 70, 234, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* === TEAM SECTION === */
.team-member {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 4px solid var(--accent-color);
}

/* === TESTIMONIALS === */
.testimonial {
    background: var(--gradient-2);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    position: relative;
    color: var(--text-color);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

.testimonial-author {
    font-weight: 600;
    margin-top: 1rem;
    text-align: right;
}

/* === FORM STYLES === */
.form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(98, 70, 234, 0.2);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--primary-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(98, 70, 234, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* === CONTACT SECTION === */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

/* === FOOTER === */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: var(--white);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: all 0.5s ease;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

.cookie-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-accept {
    background: var(--accent-color);
    color: var(--white);
}

.cookie-accept:hover {
    background: #5238d1;
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-decline:hover {
    background: var(--white);
    color: var(--text-color);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header {
        min-height: 60px;
    }
    
    .header-container {
        padding: 0 0.5rem;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .hero {
        padding: 4rem 0 4rem 0;
        min-height: auto;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        padding-top: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-actions {
        justify-content: center;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .hero {
        padding: 3.5rem 0 3rem 0;
        min-height: auto;
        margin-top: 1rem;
    }
    
    .hero-content {
        padding-top: 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 375px) {
    .main-container {
        margin-top: 85px;
    }
    
    .hero {
        padding: 4rem 0 3rem 0;
        margin-top: 1.5rem;
    }
    
    .hero-content {
        padding-top: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
        line-height: 1.1;
    }
}

/* Mobile landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .main-container {
        margin-top: 70px;
    }
    
    .hero {
        padding: 2rem 0;
        margin-top: 0.5rem;
    }
    
    .hero-content {
        padding-top: 0.5rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-color);
}

.bg-gradient {
    background: var(--gradient-1);
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
} 