/* Comfort System — Professional Interior Renovation Website */
/* Design: Warm, trustworthy, craftsmanship-focused */

:root {
    --bg: #faf8f5;
    --bg-dark: #1a1814;
    --bg-card: #ffffff;
    --bg-muted: #f2efe9;
    --text: #2a2520;
    --text-secondary: #6b6158;
    --text-light: #9a9088;
    --accent: #b8860b;
    --accent-hover: #9a7209;
    --accent-light: rgba(184, 134, 11, 0.08);
    --border: #e8e2da;
    --border-dark: #3a3530;
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --max-width: 1120px;
    --transition: 0.25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }

/* === NAV === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
    display: flex; justify-content: space-between; align-items: center; height: 64px;
}
.nav-logo {
    font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
    text-decoration: none; display: flex; align-items: center; gap: 0.4rem;
}
.logo-icon { color: var(--accent); font-size: 0.9rem; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a {
    font-size: 0.875rem; font-weight: 500; color: var(--text-secondary);
    text-decoration: none; transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* === HERO === */
.hero { position: relative; min-height: 85vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(26,24,20,0.82) 0%, rgba(26,24,20,0.55) 100%); }
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 8rem 1.5rem 4rem; }
.hero-tag { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 400; line-height: 1.2; color: #fff; margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 540px; line-height: 1.7; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; padding: 0.8rem 1.75rem;
    font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
    border-radius: var(--radius-sm); text-decoration: none; transition: all var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(184,134,11,0.25); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-secondary { background: var(--accent-light); color: var(--accent); border: 1.5px solid var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-full { width: 100%; justify-content: center; }

/* === TRUST BAR === */
.trust-bar { background: var(--bg-dark); padding: 1.75rem 0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-number { display: block; font-family: var(--font-display); font-size: 1.75rem; color: var(--accent); }
.trust-label { font-size: 0.8rem; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.trust-divider { width: 1px; height: 40px; background: var(--border-dark); }

/* === SECTIONS === */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-muted); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; margin-bottom: 1rem; }
.section-desc { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.section-cta { text-align: center; margin-top: 2.5rem; }

/* === SERVICE CARDS === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.service-img { height: 200px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-body { padding: 1.5rem; }
.service-body h3 { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.5rem; }
.service-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

/* === WHY GRID === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.why-card { background: var(--bg-card); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); transition: all var(--transition); }
.why-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.why-icon { font-size: 1.75rem; margin-bottom: 0.75rem; color: var(--accent); }
.why-card h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* === CTA CARD === */
.cta-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: var(--bg-dark); border-radius: var(--radius); overflow: hidden; padding: 3rem; }
.cta-content { color: #fff; }
.cta-content .section-tag { margin-bottom: 0.5rem; }
.cta-content h2 { font-family: var(--font-display); font-size: 2rem; margin-bottom: 1rem; color: #fff; }
.cta-content p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; line-height: 1.7; }
.cta-visual { border-radius: var(--radius-sm); overflow: hidden; }
.cta-visual img { width: 100%; height: 100%; object-fit: cover; }

/* === FINAL CTA === */
.section-cta-final { background: var(--bg-muted); }
.final-cta { text-align: center; max-width: 560px; margin: 0 auto; }
.final-cta h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.final-cta p { color: var(--text-secondary); margin-bottom: 2rem; }

/* === PAGE HERO === */
.page-hero { padding: 8rem 0 3rem; background: var(--bg-muted); text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.2; margin-bottom: 1rem; }
.page-hero-desc { color: var(--text-secondary); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* === SERVICE DETAIL === */
.service-detail-grid { display: flex; flex-direction: column; gap: 4rem; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-img { border-radius: var(--radius); overflow: hidden; }
.service-detail-img img { width: 100%; height: 320px; object-fit: cover; }
.service-detail-body h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.75rem; }
.service-detail-body p { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.7; }
.service-detail-body ul { list-style: none; }
.service-detail-body li { padding: 0.3rem 0; padding-left: 1.25rem; position: relative; color: var(--text-secondary); font-size: 0.925rem; }
.service-detail-body li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* === GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.gallery-item.large { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.gallery-caption h3 { font-family: var(--font-display); font-size: 1rem; }
.gallery-caption p { font-size: 0.8rem; opacity: 0.8; }
.gallery-note { text-align: center; margin-top: 2rem; color: var(--text-light); font-size: 0.85rem; font-style: italic; }

/* === CALCULATOR === */
.calc-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.calc-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.calc-section:last-of-type { border-bottom: none; margin-bottom: 1rem; }
.calc-section h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 1rem; }
.calc-row { display: grid; grid-template-columns: 1fr 140px 100px; gap: 1rem; align-items: center; padding: 0.5rem 0; }
.calc-row label { font-size: 0.925rem; color: var(--text-secondary); }
.calc-input { display: flex; align-items: center; gap: 0.25rem; }
.calc-input input { width: 90px; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; text-align: right; font-family: var(--font-body); }
.calc-input input:focus { outline: none; border-color: var(--accent); }
.calc-input span { font-size: 0.8rem; color: var(--text-light); min-width: 24px; }
.calc-price { font-weight: 600; font-size: 0.9rem; text-align: right; color: var(--text); }
.calc-total { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; border-top: 2px solid var(--accent); margin-top: 0.5rem; }
.calc-total span:first-child { font-weight: 600; font-size: 1rem; }
.calc-total-price { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); }
.calc-note { font-size: 0.8rem; color: var(--text-light); margin-top: 1rem; line-height: 1.5; }
.calc-note a { color: var(--accent); }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-card { background: var(--bg-muted); padding: 1.5rem; border-radius: var(--radius-sm); }
.contact-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.contact-link-big { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--accent); text-decoration: none; margin-bottom: 0.25rem; }
.contact-link-big:hover { text-decoration: underline; }
.contact-card p { font-size: 0.875rem; color: var(--text-secondary); }
.contact-address { font-size: 0.925rem; line-height: 1.6; }
.contact-table { width: 100%; font-size: 0.85rem; }
.contact-table td { padding: 0.2rem 0; }
.contact-table td:first-child { color: var(--text-light); width: 90px; }

.contact-form-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.contact-form h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.35rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 0.925rem; background: var(--bg); transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.8rem; color: var(--text-light); text-align: center; margin-top: 1rem; }

/* === FOOTER === */
.footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .nav-logo { color: #fff; font-size: 1.1rem; display: inline-flex; margin-bottom: 0.75rem; }
.footer-brand .logo-icon { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; }
.footer-col h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.65); text-decoration: none; padding: 0.2rem 0; transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem 1.5rem; gap: 0.75rem; }
    .nav-links.open { display: flex; }
    .services-grid, .why-grid { grid-template-columns: 1fr; }
    .cta-card { grid-template-columns: 1fr; padding: 2rem; }
    .service-detail, .service-detail.reverse { grid-template-columns: 1fr; direction: ltr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.large { grid-column: span 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc-row { grid-template-columns: 1fr; gap: 0.5rem; }
    .hero-content { padding-top: 6rem; }
}
