/* ============================
   DEMO 20: CLEAN / WHATKNOT STYLE
   ============================ */

   :root {
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #111111;
    --text-grey: #666666;
    --accent: #d8c199; /* Subdued gold/champagne */
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--bg-light); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 5%; }
.container-fluid { width: 100%; padding: 0 5%; max-width: 1600px; margin: 0 auto; }

/* Preloader */
#preloader { position: fixed; inset: 0; background: var(--bg-white); display: flex; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.8s ease, visibility 0.8s; }
.loader-logo { font-family: var(--font-heading); font-size: 2rem; letter-spacing: 4px; animation: pulse 1.5s infinite alternate; }
@keyframes pulse { 0% { opacity: 0.5; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1.05); } }

/* Header */
.main-header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: 0.4s ease; padding: 25px 0; }
.main-header.scrolled { background: rgba(255, 255, 255, 0.95); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); backdrop-filter: blur(10px); }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 0 5%; }

.logo { font-size: 1.8rem; letter-spacing: 4px; text-transform: uppercase; color: #fff; transition: 0.4s; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.main-header.scrolled .logo { color: var(--text-dark); text-shadow: none; }

.menu-trigger { cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after { content: ''; position: absolute; width: 100%; height: 2px; background: #fff; transition: 0.3s; box-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.main-header.scrolled .hamburger, .main-header.scrolled .hamburger::before, .main-header.scrolled .hamburger::after { background: var(--text-dark); box-shadow: none; }
.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* Menu Open State (White hamburger for black menu overlay) */
.menu-trigger.active .hamburger { background: transparent; box-shadow: none; }
.menu-trigger.active .hamburger::before { top: 0; transform: rotate(45deg); background: #fff; box-shadow: none; }
.menu-trigger.active .hamburger::after { bottom: 0; transform: rotate(-45deg); background: #fff; box-shadow: none; }

.demo-badge { position: fixed; top: 100px; right: 0; background: var(--text-dark); color: #fff; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; padding: 5px 15px; border-radius: 20px 0 0 20px; z-index: 100; font-family: var(--font-body); }

/* Off-Canvas Menu */
.full-menu { position: fixed; inset: 0; background: #111; z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: 0.4s ease-in-out; }
.full-menu.open { opacity: 1; visibility: visible; }
.menu-close { display: none; } /* Handled by hamburger animation now */
.nav-links { display: flex; flex-direction: column; text-align: center; gap: 20px; }
.nav-link { font-family: var(--font-heading); font-size: 3rem; color: #fff; transition: 0.3s; opacity: 0; transform: translateY(20px); }
.full-menu.open .nav-link { opacity: 1; transform: translateY(0); }
.nav-link:hover { color: var(--accent); font-style: italic; }

.full-menu.open .nav-link:nth-child(1) { transition-delay: 0.1s; }
.full-menu.open .nav-link:nth-child(2) { transition-delay: 0.2s; }
.full-menu.open .nav-link:nth-child(3) { transition-delay: 0.3s; }
.full-menu.open .nav-link:nth-child(4) { transition-delay: 0.4s; }
.full-menu.open .nav-link:nth-child(5) { transition-delay: 0.5s; }

.menu-footer { position: absolute; bottom: 40px; text-align: center; opacity: 0; transition: 0.6s; transition-delay: 0.6s; }
.full-menu.open .menu-footer { opacity: 1; }
.menu-footer .socials a { color: #fff; font-size: 1.2rem; margin: 0 15px; }
.menu-footer .socials a:hover { color: var(--accent); }
.menu-footer p { margin-top: 20px; font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* Hero Section */
.hero { position: relative; height: 100vh; width: 100%; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.hero-slider { position: absolute; inset: 0; z-index: 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); z-index: 2; }
.hero-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 5%; }
.hero-content h1 { font-size: 5rem; margin-bottom: 10px; font-style: italic; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.1rem; font-family: var(--font-body); letter-spacing: 4px; text-transform: uppercase; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* Buttons */
.btn-dark { display: inline-block; background: var(--text-dark); color: #fff; padding: 15px 40px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--text-dark); transition: 0.3s; }
.btn-dark:hover { background: transparent; color: var(--text-dark); }

.btn-outline { display: inline-block; background: transparent; color: var(--text-dark); padding: 15px 40px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--text-dark); transition: 0.3s; }
.btn-outline:hover { background: var(--text-dark); color: #fff; }

/* Intro Section */
.section-title { font-size: 3rem; line-height: 1.2; margin-bottom: 20px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-grey); max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }

/* Portfolio Masonry */
.masonry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-item { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4/3; }
.grid-item.tall { aspect-ratio: 3/4; }
.grid-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s ease; }
.item-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff; opacity: 0; transition: 0.4s; }
.item-overlay h3 { color: #fff; font-size: 1.8rem; font-style: italic; margin-bottom: 5px; transform: translateY(20px); transition: 0.4s; }
.item-overlay span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; transform: translateY(20px); transition: 0.4s; transition-delay: 0.1s; }
.grid-item:hover img { transform: scale(1.05); }
.grid-item:hover .item-overlay { opacity: 1; }
.grid-item:hover .item-overlay h3, .grid-item:hover .item-overlay span { transform: translateY(0); }

/* Services */
.services-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.service-box { text-align: center; }
.service-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 20px; transition: 0.4s; }
.service-box:hover .service-img { filter: brightness(0.8); }
.service-box h3 { font-size: 1.8rem; margin-bottom: 10px; }
.service-box p { color: var(--text-grey); font-size: 0.95rem; }

/* Testimonial */
.quote-icon { font-size: 2.5rem; color: #ddd; margin-bottom: 20px; }
.quote-text { font-size: 2.2rem; font-style: italic; line-height: 1.4; max-width: 800px; margin: 0 auto 20px; }
.quote-author { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px; color: var(--text-grey); }

/* Contact Form */
.clean-form { max-width: 800px; margin: 0 auto; }
.form-row { display: flex; gap: 20px; }
.input-wrap { flex: 1; margin-bottom: 20px; }
.clean-form input, .clean-form textarea { width: 100%; border: none; border-bottom: 1px solid #ddd; padding: 15px 0; font-family: var(--font-body); font-size: 1rem; background: transparent; transition: 0.3s; }
.clean-form input:focus, .clean-form textarea:focus { outline: none; border-bottom-color: var(--text-dark); }
.clean-form textarea { resize: vertical; }

/* Footer */
.footer { background: var(--text-dark); color: #fff; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid #333; }
.f-brand .logo { color: #fff; font-size: 1.5rem; margin-bottom: 10px; }
.f-brand p, .f-contact p { font-size: 0.9rem; color: #aaa; margin-bottom: 5px; }
.f-contact { text-align: center; }
.f-socials { text-align: right; }
.f-socials a { color: #fff; font-size: 1.2rem; margin-left: 20px; transition: 0.3s; }
.f-socials a:hover { color: var(--accent); }
.footer-bottom { padding-top: 30px; text-align: center; font-size: 0.8rem; color: #666; text-transform: uppercase; letter-spacing: 1px; }

.back-to-master { position: fixed; bottom: 20px; left: 20px; background: #fff; color: var(--text-dark); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; padding: 10px 20px; z-index: 1000; border: 1px solid #ddd; box-shadow: 0 5px 15px rgba(0,0,0,0.1); transition: 0.3s; }
.back-to-master:hover { background: var(--bg-light); }

/* Animations */
.reveal-slow { opacity: 0; transform: scale(0.95); animation: revealSlow 1.5s forwards cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s; }
@keyframes revealSlow { to { opacity: 1; transform: scale(1); } }
.reveal { opacity: 0; transform: translateY(40px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 4rem; }
    .services-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .f-socials { text-align: center; }
    .f-socials a { margin: 0 10px; }
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 3rem; }
    .masonry-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .section-title { font-size: 2.2rem; }
    .quote-text { font-size: 1.5rem; }
    .nav-link { font-size: 2rem; }
}
