/* ============================================
   home.made — Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* Palette — warm earth tones with steel accents */
  --color-bg:        #FAFAF8;
  --color-bg-alt:    #F2F0EC;
  --color-surface:   #FFFFFF;
  --color-text:      #1A1A1A;
  --color-text-muted:#6B6B6B;
  --color-accent:    #C8703E;         /* warm copper / terracotta */
  --color-accent-dark:#A85A2F;
  --color-accent-light:#E8A87C;
  --color-steel:     #4A5568;         /* steel gray */
  --color-steel-light:#A0AEC0;
  --color-dark:      #1A1A1A;
  --color-border:    #E2E0DC;

  /* Typography */
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Sizing */
  --container-max: 1200px;
  --nav-height:    72px;
  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* --- Reset --- */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  -webkit-text-size-adjust: 100%;
}
img { max-width:100%; display:block; height:auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
}
.accent { color: var(--color-accent); }
.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.optional { color: var(--color-text-muted); font-size:.85rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 60px;
  font-weight: 600;
  font-size: .95rem;
  transition: all .3s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #FFF;
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,112,62,.3);
}
.btn-outline {
  border: 2px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.btn-sm {
  padding: 10px 24px;
  font-size: .85rem;
  background: var(--color-accent);
  color: #FFF;
  border-radius: 60px;
}
.btn-sm:hover {
  background: var(--color-accent-dark);
}
.btn-lg { padding: 18px 40px; font-size:1.05rem; }
.btn-full { width:100%; }
.btn-nav {
  background: var(--color-accent);
  color: #FFF !important;
  padding: 10px 24px;
}
.btn-nav:hover { background: var(--color-accent-dark); }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.navbar.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(250,250,248,.95);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo img {
  height: 44px;
  width: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--color-accent); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all .3s var(--ease);
  border-radius: 2px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(200,112,62,.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(74,85,104,.06) 0%, transparent 50%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 24px;
}
.hero-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-logo-wrapper {
  position: relative;
  width: min(400px, 80%);
  aspect-ratio: 1;
}
.hero-logo-wrapper::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,112,62,.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}
.hero-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.12);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .6; }
  50%      { transform: scale(1.05); opacity: 1; }
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-accent);
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity:.4; }
  50%      { transform: scaleY(1); transform-origin: top; opacity:1; }
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   ABOUT
   ============================================ */
.about { background: var(--color-bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
}
.stat-suffix {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: var(--color-text-muted);
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--color-bg-alt); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.step-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--color-accent);
}
.step-number {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-accent-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.step-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.step-card p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   DESIGNS
   ============================================ */
.designs { background: var(--color-bg); }
.designs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.design-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.design-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.08);
}
.design-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.design-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-accent);
  color: #FFF;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 60px;
  z-index: 2;
}
.design-image {
  height: 200px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.design-placeholder {
  color: var(--color-steel-light);
  width: 120px;
}
.design-info {
  padding: 28px;
}
.design-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.design-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}
.design-specs span {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 4px 12px;
  border-radius: 60px;
}
.design-info p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits { background: var(--color-bg-alt); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--color-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.06);
}
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: .9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--color-bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 16px;
}
.gi-1 { grid-column: 1 / 3; }
.gi-4 { grid-column: 3 / 5; }
.gallery-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform .3s var(--ease);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-steel-light);
}
.gallery-placeholder svg { width: 60px; }
.gallery-placeholder span {
  font-size: .8rem;
  font-weight: 500;
}
.gallery-note {
  text-align: center;
  margin-top: 24px;
  font-size: .9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: var(--color-dark);
  color: #FFF;
  text-align: center;
  padding: 80px 24px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,.65);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact { background: var(--color-bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-details { margin-top: 32px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
}
.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-accent);
}
.contact-form {
  background: var(--color-surface);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: .95rem;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(200,112,62,.12);
}
.form-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: .9rem;
  max-width: 280px;
  line-height: 1.6;
}
.footer-links h4 {
  color: #FFF;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links a {
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
}

/* ============================================
   ANIMATIONS (scroll reveal)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .designs-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gi-1, .gi-4 { grid-column: auto; }
  .hero-content { gap: 40px; }
  .hero-logo-wrapper { width: min(320px, 90%); }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .container { padding: 0 16px; }

  /* Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 20px;
    box-shadow: -10px 0 40px rgba(0,0,0,.1);
    transition: right .3s var(--ease);
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

  /* Hero */
  .hero { min-height: auto; min-height: 100dvh; }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 16px;
    gap: 32px;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle {
    margin: 0 auto 28px;
    font-size: 1rem;
  }
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .hero-visual { order: -1; }
  .hero-logo-wrapper { width: min(200px, 50%); }
  .scroll-indicator { display: none; }

  /* Sections */
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-desc { font-size: .95rem; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  /* Steps, Designs, Benefits */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step-card { padding: 28px 20px; }
  .designs-grid { grid-template-columns: 1fr; gap: 20px; }
  .benefits-grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { padding: 28px 20px; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-form { padding: 24px 20px; }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item { min-height: 180px; }

  /* CTA Banner */
  .cta-banner { padding: 56px 16px; }
  .cta-banner h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .cta-banner p { font-size: .95rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer { padding: 40px 0 24px; }
}

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

  .hero-content { padding: 32px 14px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-tag { font-size: .7rem; letter-spacing: 2px; }
  .hero-logo-wrapper { width: min(180px, 50%); }

  .section { padding: 48px 0; }
  .section-header h2 { font-size: 1.5rem; }
  .section-tag { font-size: .7rem; }

  .about-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-number { font-size: 1.6rem; }
  .stat-suffix { font-size: 1.1rem; }
  .stat-label { font-size: .75rem; }

  .step-card { padding: 24px 16px; }
  .step-card h3 { font-size: 1.1rem; }
  .step-card p { font-size: .85rem; }
  .step-icon { width: 44px; height: 44px; }

  .design-info { padding: 20px 16px; }
  .design-info h3 { font-size: 1.15rem; }
  .design-specs { gap: 8px; flex-wrap: wrap; }
  .design-specs span { font-size: .72rem; padding: 3px 10px; }
  .design-image { height: 160px; }

  .benefit-card { padding: 24px 16px; }
  .benefit-card h3 { font-size: 1rem; }
  .benefit-icon { font-size: 1.6rem; }

  .btn { padding: 12px 24px; font-size: .9rem; }
  .btn-lg { padding: 14px 28px; font-size: .95rem; }
  .btn-nav { padding: 8px 20px; font-size: .85rem; }

  .contact-form { padding: 20px 16px; }
  .form-group input,
  .form-group select,
  .form-group textarea { padding: 10px 14px; font-size: .9rem; }

  .lead { font-size: 1rem; }

  .cta-banner { padding: 44px 14px; }
  .cta-banner .btn-lg { width: 100%; max-width: 280px; }

  .nav-logo img { height: 38px; width: 38px; }
  .footer-logo { width: 40px; height: 40px; }
}
