/* ============================================
   COOPERATIVA SAN ANTONIO ABAD
   Premium Dark Luxury — Plum & Amber
   ============================================ */

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

:root {
    --bg-primary: #0d0a0f;
    --bg-secondary: #14101a;
    --bg-tertiary: #1c1625;
    --bg-card: #1a1422;
    --bg-card-hover: #221a2e;
    --plum-dark: #2d1f3d;
    --plum-mid: #4a2d5e;
    --plum-light: #6b3d7e;
    --amber: #c8956c;
    --amber-light: #d4a574;
    --amber-glow: #e8b98a;
    --amber-dark: #a07050;
    --gold: #d4a574;
    --gold-light: #f0d4a8;
    --text-primary: #f5f0eb;
    --text-secondary: #c8bfb8;
    --text-muted: #8a7f85;
    --border: rgba(200, 149, 108, 0.15);
    --border-hover: rgba(200, 149, 108, 0.35);
    --shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Preloader --- */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 3px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar {
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, var(--amber), var(--amber-glow));
    border-radius: 2px;
    animation: loaderSlide 1s ease-in-out infinite;
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--amber);
}

.nav-logo-text {
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--amber) !important;
    font-weight: 500;
    font-size: 0.8125rem !important;
    transition: all var(--transition) !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: rgba(200, 149, 108, 0.1);
    border-color: var(--amber);
}

.nav-cta svg {
    width: 14px;
    height: 14px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all var(--transition);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -5px);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 10, 15, 0.92) 0%,
        rgba(45, 31, 61, 0.85) 50%,
        rgba(13, 10, 15, 0.90) 100%
    );
}

.hero-overlay-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 30% 50%,
        rgba(107, 61, 126, 0.2) 0%,
        transparent 60%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(200, 149, 108, 0.1);
    border: 1px solid rgba(200, 149, 108, 0.25);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--amber);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero h1 em {
    font-style: italic;
    color: var(--text-secondary);
}

.gold-text {
    color: var(--amber);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color var(--transition);
}

.hero-scroll a:hover {
    color: var(--amber);
}

.hero-scroll svg {
    width: 20px;
    height: 20px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    letter-spacing: 0.02em;
}

.btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--amber-light), var(--amber-glow));
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200, 149, 108, 0.3);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(200, 149, 108, 0.08);
    border-color: var(--amber);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Stats --- */
.stats {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--amber);
    line-height: 1;
}

.stat-plus {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amber);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 16px;
    position: relative;
    padding: 0 16px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--amber);
    opacity: 0.4;
}

.section-tag::before { left: -16px; }
.section-tag::after { right: -16px; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-title.light {
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- Services --- */
.services {
    padding: 120px 0;
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid rgba(200, 149, 108, 0.15);
    margin-bottom: 24px;
    color: var(--amber);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    font-size: 0.875rem;
    color: var(--text-muted);
    padding-left: 16px;
    position: relative;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: var(--amber);
    border-radius: 50%;
    opacity: 0.6;
}

/* --- About --- */
.about {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-main {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-image-main img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 240px;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid var(--bg-secondary);
    box-shadow: var(--shadow);
}

.about-image-accent img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -24px;
    left: -24px;
    background: linear-gradient(135deg, var(--amber), var(--amber-dark));
    color: var(--bg-primary);
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
}

.about-experience-badge .exp-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.about-experience-badge .exp-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.about-content .section-tag {
    display: block;
    text-align: left;
    padding: 0;
}

.about-content .section-tag::before,
.about-content .section-tag::after {
    display: none;
}

.about-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0 40px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.about-feature svg {
    width: 18px;
    height: 18px;
    color: var(--amber);
    flex-shrink: 0;
}

/* --- Commitment --- */
.commitment {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.commitment-bg {
    position: absolute;
    inset: 0;
}

.commitment-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.commitment-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 10, 15, 0.93) 0%,
        rgba(45, 31, 61, 0.88) 100%
    );
}

.commitment-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.commitment-content .section-tag {
    display: block;
    padding: 0;
}

.commitment-content .section-tag::before,
.commitment-content .section-tag::after {
    display: none;
}

.commitment-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto 64px;
}

.commitment-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.commitment-value {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition);
}

.commitment-value:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.cv-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid rgba(200, 149, 108, 0.2);
    color: var(--amber);
}

.cv-icon svg {
    width: 28px;
    height: 28px;
}

.commitment-value h4 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.commitment-value p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Contact --- */
.contact {
    padding: 120px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info .section-tag {
    display: block;
    text-align: left;
    padding: 0;
}

.contact-info .section-tag::before,
.contact-info .section-tag::after {
    display: none;
}

.contact-desc {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cd-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(200, 149, 108, 0.08);
    border: 1px solid rgba(200, 149, 108, 0.15);
    color: var(--amber);
    flex-shrink: 0;
}

.cd-icon svg {
    width: 20px;
    height: 20px;
}

.contact-detail h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.contact-detail p {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--amber);
}

.contact-detail a:hover {
    color: var(--amber-glow);
}

.contact-map {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* --- Form --- */
.contact-form-wrapper {
    padding: 8px;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
}

.contact-form-card h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    font-family: 'Playfair Display', serif;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: rgba(200, 149, 108, 0.05);
    box-shadow: 0 0 0 3px rgba(200, 149, 108, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8956c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 14 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

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

.form-privacy {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--amber);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.contact-form .btn {
    margin-top: 8px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
}

.form-success svg {
    width: 56px;
    height: 56px;
    color: var(--amber);
    margin: 0 auto 16px;
}

.form-success h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-muted);
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 80px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 64px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.7;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    color: var(--amber);
}

.footer-links h4,
.footer-contact h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    font-size: 0.9375rem;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--amber);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
    color: var(--amber);
    flex-shrink: 0;
}

.footer-contact a {
    color: var(--amber);
}

.footer-contact a:hover {
    color: var(--amber-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* --- Back to top --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(200, 149, 108, 0.15);
    border-color: var(--amber);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* --- Animations --- */
[data-aos] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos].aos-delay-1 { transition-delay: 0.1s; }
[data-aos].aos-delay-2 { transition-delay: 0.2s; }
[data-aos].aos-delay-3 { transition-delay: 0.3s; }
[data-aos].aos-delay-4 { transition-delay: 0.4s; }
[data-aos].aos-delay-5 { transition-delay: 0.5s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        gap: 48px;
    }

    .commitment-values {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-image-accent {
        right: 16px;
        bottom: -24px;
        width: 180px;
    }

    .about-image-accent img {
        height: 140px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .commitment-values {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-card {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}
