/* ========================================
   Xerini Website Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    --color-purple: #5a328a;
    --color-teal: #89d5d2;
    --color-dark: #24291c;
    --color-white: #ffffff;
    --color-light: #e1ecf6;
    --color-gray: #4b4c53;

    --font-heading: 'InputSans-Medium', 'Inter', sans-serif;
    --font-body: 'ProximaNova-Regular', 'Inter', sans-serif;
    --font-semibold: 'ProximaNova-Semibold', 'Inter', sans-serif;

    --max-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-purple);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-purple);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 4%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--color-purple);
    color: var(--color-light);
}

.btn-primary:hover {
    background: var(--color-teal);
    color: var(--color-purple);
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease;
}

.header.scrolled {
    background: var(--color-dark);
}

.header.header-solid {
    background: var(--color-purple);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 40px;
}

.logo img {
    height: 28px;
    width: auto;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-light);
    letter-spacing: 0.03em;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-light);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.phone-icon {
    display: flex;
    color: var(--color-purple);
}

.header-cta {
    display: none;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 400px;
    height: 100vh;
    background: var(--color-white);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray);
}

.mobile-nav {
    flex: 1;
    padding: 0 24px 24px;
}

.mobile-nav-list {
    margin-bottom: 40px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-size: 16px;
}

.mobile-nav-link.active {
    color: var(--color-purple);
}

.mobile-menu-contact h4 {
    color: var(--color-purple);
    margin-bottom: 8px;
}

.mobile-menu-contact a {
    display: block;
    color: var(--color-purple);
    padding: 4px 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
    max-width: 900px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 2rem);
    color: var(--color-white);
    margin-bottom: 32px;
}

/* ========================================
   Trusted By Section
   ======================================== */
.trusted-by {
    padding: 40px 0;
    background: var(--color-white);
}

.trusted-by-title {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--color-purple);
    margin-bottom: 32px;
}

.logo-slider {
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
}

.logo-slide {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 10px;
    padding: 16px;
}

.logo-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 10 - 40px * 10)); }
}

/* ========================================
   Logo Bar Section
   ======================================== */
.logo-bar {
    padding: 60px 0;
    background: var(--color-teal);
    text-align: center;
}

.logo-bar-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-purple);
    margin-bottom: 40px;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
    margin-bottom: 32px;
}

.logo-item {
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo-bar-note {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Problem Section
   ======================================== */
.problem-section {
    padding: 80px 0;
    background: url('../images/backgrounds/hero-background.png') center/cover no-repeat;
    text-align: center;
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
}

.problem-title {
    margin-bottom: 8px;
}

.problem-highlight {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-teal);
    margin-bottom: 32px;
}

.problem-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

.problem-content h4 {
    margin: 32px 0 16px;
}

/* ========================================
   Before/After Sections
   ======================================== */
.before-section {
    padding: 80px 0;
    background: var(--color-dark);
}

.before-content,
.after-content {
    display: grid;
    gap: 48px;
    align-items: center;
}

.before-image img,
.after-image img {
    border-radius: 8px;
}

.before-text h2 {
    color: var(--color-teal);
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.before-text p {
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 2;
}

.after-section {
    padding: 80px 0;
    background: var(--color-purple);
}

.after-text h2 {
    color: var(--color-white);
    font-family: var(--font-heading);
    margin-bottom: 24px;
}

.after-text p {
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.5;
    font-family: var(--font-body);
}

.after-text a {
    text-decoration: underline;
}

/* ========================================
   Contact CTA Section
   ======================================== */
.contact-cta {
    padding: 80px 0;
    background: var(--color-light);
    text-align: center;
}

.contact-cta h2 {
    margin-bottom: 16px;
}

.contact-cta > .container > p {
    color: var(--color-dark);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--color-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--color-white);
    color: var(--color-gray);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray);
    opacity: 0.7;
}

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

.btn-submit {
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0;
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 24px 0;
    background: var(--color-purple);
    color: var(--color-white);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: space-between;
}

.footer-info {
    font-size: 14px;
}

.footer-info p {
    margin-bottom: 4px;
}

.footer-company {
    font-weight: 600;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--color-teal);
}

.footer-copyright {
    font-size: 14px;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--color-white);
    transition: opacity 0.3s ease;
}

.footer-social a:hover {
    opacity: 0.7;
}

.footer-certifications {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cert-badge {
    height: 60px;
    width: auto;
}

.cert-badge-iso {
    height: 72px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .before-content,
    .after-content {
        grid-template-columns: 1fr 1fr;
    }

    .after-content {
        grid-template-columns: 1fr 1fr;
    }

    .after-content .after-text {
        order: -1;
    }
}

@media (min-width: 1025px) {
    .nav-desktop {
        display: block;
    }

    .hamburger,
    .phone-icon {
        display: none;
    }

    .header-cta {
        display: inline-block;
    }

    .logo-slide {
        width: 180px;
    }
}

@media (max-width: 767px) {
    .hero {
        min-height: 60vh;
    }

    .problem-section,
    .before-section,
    .after-section,
    .contact-cta {
        padding: 60px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        text-align: center;
    }

    .cert-badge {
        height: 50px;
    }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-dark);
    padding: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-content p {
    color: var(--color-light);
    margin: 0;
    flex: 1;
    min-width: 280px;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
}

.btn-cookie-accept {
    background: var(--color-teal);
    color: var(--color-dark);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-cookie-accept:hover {
    background: var(--color-light);
}

.btn-cookie-decline {
    background: transparent;
    color: var(--color-light);
    border: 1px solid var(--color-light);
    padding: 10px 24px;
    font-size: 14px;
}

.btn-cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}
