/* ============================================
   Rafas Famous Fades — Custom Styles
   Deep Navy + Warm Gold | Fresh & Airy
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --color-navy:        #0f1c3f;
    --color-navy-light:  #1a2d5a;
    --color-navy-dark:   #091229;
    --color-gold:        #c8a45e;
    --color-gold-light:  #dfc07a;
    --color-gold-dark:   #a8843e;
    --color-cream:       #faf8f4;
    --color-cream-dark:  #f0ece4;
    --color-white:       #ffffff;
    --color-text:        #1a1a2e;
    --color-text-light:  #5a5a7a;
    --color-text-muted:  #8a8aa0;
    --color-border:      #e8e4dc;
    
    --font-body:   'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    
    --shadow-sm:  0 2px 8px rgba(15,28,63,0.06);
    --shadow-md:  0 8px 30px rgba(15,28,63,0.10);
    --shadow-lg:  0 20px 60px rgba(15,28,63,0.12);
    --shadow-gold: 0 8px 30px rgba(200,164,94,0.30);
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-navy);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}
.skip-link:focus {
    top: 16px;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.01em;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    color: var(--color-navy-dark);
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(200,164,94,0.45);
}

.btn-navy {
    background: var(--color-navy);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}
.btn-navy:hover {
    background: var(--color-navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: rgba(255,255,255,0.12);
    color: var(--color-white);
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}
.btn-outline-light:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

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

/* ---------- Section Tags ---------- */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    background: linear-gradient(135deg, rgba(200,164,94,0.15), rgba(200,164,94,0.08));
    border: 1px solid rgba(200,164,94,0.3);
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--color-text-light);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-header .section-desc {
    margin: 0 auto;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250,248,244,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200,164,94,0.15);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(250,248,244,0.96);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--color-navy);
}

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

.nav-links a:not(.btn) {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition);
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width var(--transition);
}
.nav-links a:not(.btn):hover {
    color: var(--color-navy);
}
.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    align-items: center;
    justify-content: center;
}
.mobile-toggle .hamburger {
    width: 22px;
    height: 2px;
    background: var(--color-navy);
    position: relative;
    transition: all var(--transition);
}
.mobile-toggle .hamburger::before,
.mobile-toggle .hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--color-navy);
    transition: all var(--transition);
}
.mobile-toggle .hamburger::before { top: -7px; }
.mobile-toggle .hamburger::after  { top: 7px; }
.mobile-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.mobile-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-navy-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(9,18,41,0.88) 0%,
        rgba(15,28,63,0.75) 50%,
        rgba(26,45,90,0.60) 100%
    );
}

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

.hero-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    border: 1px solid rgba(200,164,94,0.4);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    margin-bottom: 28px;
    background: rgba(200,164,94,0.08);
}

.hero-title {
    font-size: clamp(40px, 7vw, 76px);
    color: var(--color-white);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--color-gold);
    font-style: italic;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 40px;
}

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

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ---------- Services ---------- */
.services {
    padding: 100px 0;
    background: var(--color-cream);
}

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

.service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(15,28,63,0.06), rgba(15,28,63,0.03));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-navy);
    transition: all var(--transition);
}
.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-gold);
}

.service-title {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-navy);
}

.service-desc {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ---------- About ---------- */
.about {
    padding: 100px 0;
    background: var(--color-white);
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.3;
}

.about-content .section-title {
    margin-bottom: 24px;
}

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

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-navy);
}

.stat-label {
    font-size: 13px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: 100px 0 80px;
    background: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,28,63,0.80) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-overlay span {
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
}

.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background: var(--color-navy-dark);
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(9,18,41,0.92), rgba(15,28,63,0.82));
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(32px, 5vw, 52px);
    color: var(--color-white);
    margin-bottom: 20px;
}

.cta-text {
    font-size: 17px;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0 80px;
    background: var(--color-white);
}

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

.contact-desc {
    font-size: 16px;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

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

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(15,28,63,0.06), rgba(15,28,63,0.03));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
}

.contact-item .contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-item span,
.contact-item a {
    font-size: 16px;
    color: var(--color-text);
    font-weight: 500;
}
.contact-item a:hover {
    color: var(--color-gold-dark);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    padding: 48px;
    border: 1px solid var(--color-border);
}

.form-title {
    font-size: 26px;
    margin-bottom: 28px;
    color: var(--color-navy);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-white);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px rgba(200,164,94,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(15,28,63,0.05), rgba(15,28,63,0.02));
    border: 1px solid rgba(15,28,63,0.1);
    border-radius: var(--radius-sm);
    margin-top: 16px;
    color: var(--color-navy);
    font-weight: 500;
    font-size: 15px;
}
.form-success.show {
    display: flex;
}
.form-success svg {
    color: var(--color-gold-dark);
    flex-shrink: 0;
}

.map-wrapper {
    margin-top: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-white);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,0.70);
    padding: 80px 0 0;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}
.footer-brand .logo-text {
    color: var(--color-white);
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 15px;
    color: rgba(255,255,255,0.60);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--color-white);
}

.footer-contact p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 4px;
}
.footer-contact a {
    color: rgba(255,255,255,0.60);
    transition: color var(--transition);
}
.footer-contact a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.40);
    text-align: center;
}

/* ---------- Mobile Nav Overlay ---------- */
.nav-links.mobile-open {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(250,248,244,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    z-index: 99;
}
.nav-links.mobile-open a {
    font-size: 22px;
    color: var(--color-navy);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: flex;
    }
    .nav-links.mobile-open {
        display: flex;
    }

    .hero-content {
        padding: 100px 24px 80px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .services {
        padding: 72px 0;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card {
        padding: 28px 24px;
    }

    .about {
        padding: 72px 0;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-image {
        height: 360px;
    }
    .about-accent {
        width: 120px;
        height: 120px;
        bottom: -16px;
        right: -16px;
    }
    .about-stats {
        gap: 24px;
    }

    .gallery {
        padding: 72px 0 60px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .cta-banner {
        padding: 72px 0;
    }

    .contact {
        padding: 72px 0 60px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .contact-form-wrapper {
        padding: 32px 24px;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 36px;
    }

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

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
