/* =============================================
   MELWOOD SURFACE — style.css
   Refined Surface-Focused Layout
   ============================================= */

:root {
  --color-linen:      #f9f7f2; /* Linen Beige */
  --color-green:      #1a3c34; /* Forest Green */
  --color-brass:      #b59a5d; /* Antique Brass */
  --color-white:      #ffffff; /* Warm White */
  --color-espresso:   #2d241e; /* Deep Espresso */
  --color-text:       #3a3a3a;
  --color-muted:      #7a7a7a;
  --color-border:     #e2e2e2;
  --font-heading:     'Playfair Display', serif;
  --font-body:        'Inter', sans-serif;
  --radius:           16px;
  --transition:       0.5s cubic-bezier(0.19, 1, 0.22, 1);
  --shadow:           0 20px 40px rgba(26, 60, 52, 0.05);
  --surface-texture:  url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="f"><feTurbulence type="fractalNoise" baseFrequency="0.5" numOctaves="2" stitchTiles="stitch" /></filter><rect width="100" height="100" filter="url(%23f)" opacity="0.03"/></svg>');
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Typography */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-green); }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); margin-bottom: 25px; }
h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 20px; text-align: center; }
p { margin-bottom: 20px; }

/* Sections */
section { padding: 140px 0; position: relative; }
.section-header { text-align: center; max-width: 800px; margin: 0 auto 100px; }
.section-header p { color: var(--color-muted); font-size: 1.2rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 42px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-brass);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(181, 154, 93, 0.3);
}
.btn-outline {
  border: 2px solid var(--color-green);
  color: var(--color-green);
}
.btn-outline:hover {
  background: var(--color-green);
  color: var(--color-white);
}

/* Header — Refined Warm Ivory */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249, 247, 242, 0.9);
  backdrop-filter: blur(20px);
  padding: 25px 0;
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  padding: 15px 0;
  background: var(--color-linen);
  border-bottom: 2px solid var(--color-brass);
  box-shadow: var(--shadow);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--color-green); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { color: var(--color-green); font-weight: 600; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--color-brass); }
.nav-phone { border-left: 2px solid var(--color-brass); padding-left: 20px; margin-left: 10px; color: var(--color-espresso) !important; }

.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { display: block; width: 28px; height: 2px; background: var(--color-green); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: 300px; height: 100vh;
  background: var(--color-linen);
  z-index: 1100;
  padding: 120px 40px;
  transition: right 0.5s ease;
  box-shadow: var(--shadow);
}
.mobile-nav.open { right: 0; }
.mobile-nav a { display: block; padding: 20px 0; font-size: 1.2rem; font-family: var(--font-heading); color: var(--color-green); border-bottom: 1px solid var(--color-border); }

/* Hero — Offset Layout */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  background-image: var(--surface-texture);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  height: 100%;
  width: 100%;
}
.hero-content {
  padding: 0 10% 0 15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-content p { font-size: 1.3rem; margin-bottom: 45px; color: var(--color-muted); max-width: 600px; }
.hero-btns { display: flex; gap: 25px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-phone { font-size: 1.6rem; font-weight: 700; color: var(--color-espresso); display: block; }

.hero-img-wrap { position: relative; height: 100%; }
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  top: 20%; left: -60px;
  background: var(--color-white);
  padding: 25px 45px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 6px solid var(--color-brass);
  z-index: 3;
}
.hero-badge h4 { color: var(--color-green); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }

/* About — Refined Craftsmanship */
#about { background: var(--color-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-img { position: relative; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-img::before { content: ''; position: absolute; inset: -20px; border: 2px solid var(--color-linen); border-radius: 20px; z-index: -1; }

.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 50px; }
.craft-item { border-top: 1px solid var(--color-border); padding-top: 20px; }
.craft-item h4 { font-size: 1rem; color: var(--color-brass); margin-bottom: 10px; }
.craft-item p { font-size: 0.9rem; margin-bottom: 0; }

/* Services — Premium Rounded Cards */
#services { background-image: var(--surface-texture); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.service-card {
  background: var(--color-white);
  padding: 50px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-15px); box-shadow: var(--shadow); border-color: var(--color-brass); }
.service-card h3 { margin-bottom: 20px; font-size: 1.5rem; }
.service-divider { width: 40px; height: 3px; background: var(--color-brass); margin-bottom: 25px; }
.service-card p { color: var(--color-muted); font-size: 1rem; margin-bottom: 0; }

/* Why Choose Us — Layered Green */
#why { background: var(--color-green); color: var(--color-linen); overflow: hidden; }
#why h2 { color: var(--color-linen); }
.why-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.why-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 50px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}
.why-card:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); }
.why-card h3 { color: var(--color-brass); margin-bottom: 20px; font-size: 1.3rem; }
.why-card p { opacity: 0.8; margin-bottom: 0; font-size: 0.95rem; }

/* Gallery — Featured Showcase */
.gallery-showcase { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.gallery-main { height: 600px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 30px; }
.gallery-tile { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s; }
.gallery-tile:hover img { transform: scale(1.1); }

/* Process — Numbered Grid */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.process-card { background: var(--color-white); padding: 50px; border-radius: var(--radius); position: relative; box-shadow: var(--shadow); }
.process-num { font-family: var(--font-heading); font-size: 4rem; color: var(--color-linen); position: absolute; top: 10px; right: 20px; font-weight: 900; line-height: 1; z-index: 1; }
.process-card h3 { position: relative; z-index: 2; margin-bottom: 15px; }
.process-card p { position: relative; z-index: 2; margin-bottom: 0; color: var(--color-muted); }

/* Reviews — Elegant Testimonials */
#reviews { background: var(--color-linen); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.review-card { background: var(--color-white); padding: 60px; border-radius: var(--radius); position: relative; }
.quote-icon { font-size: 4rem; color: var(--color-brass); opacity: 0.2; position: absolute; top: 30px; left: 30px; }
.review-card p { font-style: italic; font-size: 1.1rem; position: relative; z-index: 1; margin-bottom: 30px; }
.review-meta { display: flex; align-items: center; gap: 15px; }
.review-avatar { width: 50px; height: 50px; background: var(--color-green); color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Contact — Premium Split */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-form-wrap { background: var(--color-white); padding: 80px; }
.contact-info-wrap { background: var(--color-green); padding: 80px; color: var(--color-linen); }
.contact-info-wrap h3 { color: var(--color-brass); margin-bottom: 40px; }
.contact-item { margin-bottom: 40px; }
.contact-item label { display: block; font-size: 0.8rem; text-transform: uppercase; color: var(--color-brass); letter-spacing: 1px; margin-bottom: 10px; }
.contact-item p { font-size: 1.2rem; }

.form-group { margin-bottom: 30px; }
.form-group label { display: block; margin-bottom: 10px; font-weight: 600; color: var(--color-green); }
.form-group input, .form-group textarea {
  width: 100%; padding: 18px; border: 1px solid var(--color-border); border-radius: 12px;
  font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--color-linen);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-green); background: var(--color-white); }
#form-success { display: none; background: var(--color-green); color: var(--color-white); padding: 30px; border-radius: 12px; text-align: center; margin-bottom: 40px; }

/* Map — Refined Framed */
.map-section { padding-bottom: 0; }
.map-frame { height: 600px; border-radius: var(--radius); overflow: hidden; position: relative; border: 15px solid var(--color-white); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; border: none; }
.map-card {
  position: absolute; bottom: 40px; left: 40px;
  background: var(--color-white); padding: 40px;
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 380px;
}

/* Footer — Deep Forest Green */
footer { background: var(--color-green); color: var(--color-linen); padding: 120px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 60px; margin-bottom: 100px; }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: var(--color-brass); margin-bottom: 25px; }
.footer-col h4 { color: var(--color-white); margin-bottom: 35px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { display: block; margin-bottom: 18px; opacity: 0.7; transition: var(--transition); }
.footer-col a:hover { opacity: 1; color: var(--color-brass); transform: translateX(8px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 40px; text-align: center; font-size: 0.9rem; opacity: 0.5; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .hero-content { padding: 0 5%; align-items: center; text-align: center; }
  .about-grid, .gallery-showcase, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .contact-form-wrap, .contact-info-wrap { padding: 60px 30px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .map-card { position: static; transform: none; max-width: 100%; margin-top: -40px; }
}

/* Animations */
.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
