/* 
   Dr. Allan Luxury Tiny Home
   Design System & Styling
*/

:root {
    --primary-raw: 35, 31, 32;
    --accent-raw: 196, 159, 101;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --text-dark: #231f20;
    --text-muted: #666666;
    --font-main: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --blur: 10px;
    --container-width: 1200px;
    --section-padding: 100px 20px;
}

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

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

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

.bg-light { background-color: var(--bg-light); }
.section { padding: var(--section-padding); }

.section-header {
    margin-bottom: 60px;
    max-width: 600px;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); }
.center-header { max-width: 100%; text-align: center; }

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -1px; color: var(--text-dark); }
.logo span { font-weight: 300; color: var(--text-muted); }

.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.88rem; transition: color 0.3s; }
.nav-links li a:hover { color: rgb(var(--accent-raw)); }

/* ===== HERO ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Space for the fixed navbar */
}

.hero-image-container {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: -1;
}

.hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: zoomOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content { max-width: 720px; }

.price-badge {
    display: inline-block;
    background: rgba(196,159,101,0.15);
    color: rgb(var(--accent-raw));
    border: 1.5px solid rgb(var(--accent-raw));
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}

.price-badge s {
    opacity: 0.6;
    font-weight: 400;
}

/* ===== COUNTDOWN TIMER ===== */
.countdown-wrapper {
    margin: 28px 0 32px;
    display: inline-block;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.65);
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cd-block {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    min-width: 72px;
}

.cd-block span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: rgb(var(--accent-raw));
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.cd-block small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.55);
    margin-top: 4px;
}

.cd-sep {
    font-size: 1.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    margin-bottom: 14px;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.hero .highlight { color: rgb(var(--accent-raw)); }
.hero p { font-size: 1.2rem; font-weight: 300; margin-bottom: 40px; opacity: 0.9; }
.hero-btns { display: flex; gap: 20px; flex-wrap: wrap; }

/* ===== FEATURE CARDS ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: -60px;
    z-index: 10;
    position: relative;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-8px); }
.feature-icon { font-size: 2.2rem; display: block; margin-bottom: 15px; }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== BUTTONS ===== */
.cta-btn {
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.cta-btn.primary { background: rgb(var(--accent-raw)); color: white; }
.cta-btn.secondary {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}
.cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }

/* ===== GALLERY MASONRY ===== */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 260px;
    gap: 16px;
}

.g-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.g-item.g-large {
    grid-column: span 2;
}

.g-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: block;
}

.g-item:hover img { transform: scale(1.07); }

.g-item .overlay {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 55%);
    display: flex; align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.g-item:hover .overlay { opacity: 1; }
.g-item .overlay span { color: white; font-weight: 600; font-size: 1rem; letter-spacing: 0.5px; }

.gallery-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInLb 0.25s ease;
}

.lightbox.open { display: flex; }

.lb-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lb-content img {
    max-width: 90vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

#lb-caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    text-align: center;
}

.lb-close {
    position: absolute; top: 20px; right: 28px;
    background: none; border: none;
    color: white; font-size: 1.8rem;
    cursor: pointer; opacity: 0.7;
    transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }

.lb-prev, .lb-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white; font-size: 2.5rem;
    width: 56px; height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(196,159,101,0.5); }

/* ===== SPECS ===== */
.specs-wrapper { padding: 80px; border-radius: 20px; }

.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid rgba(0,0,0,0.06); }
.specs-table td { padding: 22px 0; font-size: 1.05rem; }
.specs-table td:first-child {
    width: 40%; color: var(--text-muted);
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px;
}

/* ===== SPLIT LAYOUT ===== */
.split-layout { display: flex; align-items: center; gap: 80px; }
.content-side, .image-side { flex: 1; }
.large-p { font-size: 1.15rem; color: var(--text-dark); margin-bottom: 30px; }

.benefit-list { list-style: none; }
.benefit-list li { margin-bottom: 18px; padding-left: 30px; position: relative; font-size: 1.05rem; }
.benefit-list li::before { content: '✓'; position: absolute; left: 0; color: rgb(var(--accent-raw)); font-weight: 700; }

.image-stack { position: relative; height: 500px; }
.stack-img { border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.stack-img.main { width: 80%; height: 100%; object-fit: cover; }
.stack-img.sub {
    position: absolute; bottom: -30px; right: 0;
    width: 60%; height: 300px; object-fit: cover;
    border: 8px solid white;
}

/* ===== PRICING SECTION ===== */
.pricing-section {
    background: linear-gradient(135deg, #1a1618 0%, #2d2527 100%);
    color: white;
}

.pricing-card {
    max-width: 680px;
    margin: 0 auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.pricing-badge {
    display: inline-block;
    background: rgb(var(--accent-raw));
    color: white;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 35px;
}

.pricing-main { margin-bottom: 40px; }

.price-was {
    display: block;
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    text-decoration: line-through;
    margin-bottom: 10px;
}

.price-now {
    font-size: 5rem;
    font-weight: 700;
    color: rgb(var(--accent-raw));
    line-height: 1;
    margin: 10px 0;
}

.price-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
}

.pricing-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 35px 0;
}

.pricing-includes {
    list-style: none;
    text-align: left;
    display: inline-block;
}
.pricing-includes li {
    padding: 10px 0;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
    max-width: 800px; margin: 0 auto;
    padding: 60px; text-align: center; position: relative;
}

.quote-icon {
    font-size: 5rem; color: rgb(var(--accent-raw));
    opacity: 0.2; position: absolute; top: 20px; left: 50%;
    transform: translateX(-50%); font-family: serif;
}

.quote-text { font-size: 1.4rem; font-style: italic; margin-bottom: 30px; position: relative; z-index: 1; }
.author { display: flex; flex-direction: column; }
.author .name { font-weight: 700; }
.author .title { font-size: 0.9rem; color: var(--text-muted); }

/* ===== CONTACT SECTION ===== */
.contact-section { background: var(--bg-light); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.contact-icon { font-size: 2.5rem; margin-bottom: 20px; }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--text-dark); }
.contact-card a {
    color: rgb(var(--accent-raw));
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 8px;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== BUYER FORM SECTION ===== */
.dark-bg { background-color: var(--text-dark); color: white; }

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

.form-info { padding-top: 20px; }

.form-price-tag {
    display: inline-flex;
    flex-direction: column;
    background: rgb(var(--accent-raw));
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 35px;
    text-align: center;
}

.form-price-tag span { font-size: 0.85rem; opacity: 0.85; }
.form-price-tag strong { font-size: 2.8rem; font-weight: 700; line-height: 1.1; }

.white-heading { font-size: 2.2rem; margin-bottom: 20px; color: white; }
.white-heading .highlight { color: rgb(var(--accent-raw)); }

.form-desc { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 30px; line-height: 1.7; }

.form-perks { list-style: none; }
.form-perks li {
    padding: 12px 0;
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 45px;
    border-radius: 16px;
}

.form-title { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 30px; }

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

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; opacity: 0.75; color: white; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border 0.3s ease, background 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgb(var(--accent-raw));
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.35); }

.form-group select option { background: #231f20; color: white; }

.full-width { width: 100%; text-align: center; font-size: 1rem; padding: 18px; }

.form-privacy { text-align: center; margin-top: 16px; font-size: 0.8rem; opacity: 0.5; color: white; }

/* Success Message */
.form-success {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 60px 45px;
    text-align: center;
    color: white;
}

.success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.form-success h3 { font-size: 1.8rem; margin-bottom: 15px; }
.form-success p { opacity: 0.7; }
.hidden { display: none; }

/* ===== SCROLL ANIMATIONS ===== */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
.footer { padding: 60px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-logo { font-weight: 700; font-size: 1.2rem; }
.footer-logo span { font-weight: 300; color: var(--text-muted); }
.footer-content p { color: var(--text-muted); font-size: 0.9rem; }
.social-links a { margin-left: 20px; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; transition: color 0.3s; }
.social-links a:hover { color: rgb(var(--accent-raw)); }

/* ===== ANIMATIONS ===== */
@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1.0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.fade-in { animation: fadeIn 1s ease forwards; }
.fade-in-delay { animation: fadeIn 1s ease forwards 0.3s; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 1s ease forwards 0.6s; opacity: 0; }

/* ===== ABOUT THIS HOME SECTION ===== */
.about-section {
    background: var(--bg-white);
}

.about-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 6-card feature grid */
.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 60px 0 80px;
}

.about-card {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: rgb(var(--accent-raw));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    border-color: rgba(196,159,101,0.3);
}

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

.about-card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: block;
}

.about-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.about-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Split story layout */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin-top: 20px;
}

.about-story-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.about-story-img img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-story-img:hover img { transform: scale(1.03); }

.about-story-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(35,31,32,0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.15);
}

.about-story-text { display: flex; flex-direction: column; }

.about-tag {
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.78rem;
    color: rgb(var(--accent-raw));
    font-weight: 700;
    margin-bottom: 16px;
}

.about-story-text h3 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 28px;
    color: var(--text-dark);
}

.about-story-text h3 .highlight { color: rgb(var(--accent-raw)); }

.about-story-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-cta-line {
    color: var(--text-dark) !important;
    font-size: 1.1rem !important;
    margin-bottom: 28px !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .form-layout { grid-template-columns: 1fr; gap: 50px; }
    .about-cards { grid-template-columns: repeat(2, 1fr); }
    .about-story { grid-template-columns: 1fr; gap: 40px; }
    .about-story-img img { height: 380px; }
}

@media (max-width: 900px) {
    .gallery-masonry { grid-template-columns: repeat(2, 1fr); }
    .g-item.g-large { grid-column: span 2; }
    .split-layout { flex-direction: column; }
    .image-stack { height: 400px; margin-top: 50px; }
    .specs-wrapper { padding: 40px 25px; }
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 680px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .gallery-masonry { grid-template-columns: 1fr; }
    .g-item.g-large { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .price-now { font-size: 3.5rem; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .nav-links { gap: 15px; }
    .pricing-card { padding: 35px 20px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-content .social-links { margin-top: 10px; }
    .social-links a:first-child { margin-left: 0; }
    .about-cards { grid-template-columns: 1fr; }
    .about-story-text h3 { font-size: 1.6rem; }
}

