/* ============================================
   FORLOP TECHNOLOGIES — Design System
   Minimalist Elegant Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- Variables --- */
:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --cream: #f5f3f0;
    --cream-dark: #ede9e4;
    --gold: #c9a96e;
    --gold-light: #e8d5b0;
    --grey: #6b6b6b;
    --grey-light: #9a9a9a;
    --border: #e2ddd8;
    --white: #ffffff;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', sans-serif;

    --max-width: 1200px;
    --section-pad: 8rem 0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Container --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 3rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(245, 243, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 3rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--grey);
    letter-spacing: 0.3px;
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a:hover,
.nav-links a.active { color: var(--charcoal); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    background: var(--charcoal) !important;
    color: var(--cream) !important;
    padding: 0.7rem 1.8rem;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    transition: var(--transition) !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--charcoal) !important;
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.4rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-dark {
    background: var(--charcoal);
    color: var(--cream);
}
.btn-dark:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border: 1.5px solid var(--charcoal);
}
.btn-outline:hover {
    background: var(--charcoal);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-text {
    background: none;
    color: var(--charcoal);
    padding: 0;
    font-weight: 500;
    position: relative;
}
.btn-text::after {
    content: '→';
    margin-left: 0.4rem;
    transition: margin-left 0.3s;
    display: inline-block;
}
.btn-text:hover::after { margin-left: 0.9rem; }

/* ============================================
   SECTION UTILITIES
   ============================================ */
.section { padding: var(--section-pad); }
.section-sm { padding: 5rem 0; }

.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--grey);
    line-height: 1.8;
    max-width: 600px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Decorative Line */
.deco-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 2rem 0;
}
.text-center .deco-line { margin: 2rem auto; }

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border), transparent);
    margin: 4rem 0;
}

/* ============================================
   DARK SECTION
   ============================================ */
.section-dark {
    background: var(--charcoal);
    color: var(--cream);
}
.section-dark .section-title { color: var(--cream); }
.section-dark .section-subtitle { color: rgba(245,243,240,0.65); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: var(--cream);
    padding: 6rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}
.footer-logo span { color: var(--gold); }

.footer-desc {
    font-size: 0.95rem;
    color: rgba(245,243,240,0.6);
    line-height: 1.9;
    margin-bottom: 2rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a {
    font-size: 0.95rem;
    color: rgba(245,243,240,0.65);
    transition: color 0.3s;
}
.footer-col ul a:hover { color: var(--cream); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.88rem;
    color: rgba(245,243,240,0.4);
}

/* ============================================
   PAGE HERO (Inner Pages)
   ============================================ */
.page-hero {
    padding: 7rem 0 6rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    z-index: 0;
}

.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--grey-light);
    margin-bottom: 2.5rem;
}
.page-hero .breadcrumb a { color: var(--grey); transition: color 0.3s; }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { color: var(--border); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-up {
    opacity: 0;
    animation: fadeUp 0.75s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .container { padding: 0 2rem; }
    .nav-inner { padding: 1.5rem 2rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    :root { --section-pad: 5rem 0; }

    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--cream); padding: 2rem; border-bottom: 1px solid var(--border); gap: 1.5rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta { width: fit-content; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .page-hero::before { display: none; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
