/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0a;
  --dark: #1a1a1a;
  --gray-900: #262626;
  --gray-800: #333;
  --gray-700: #444;
  --gray-600: #666;
  --gray-400: #999;
  --gray-300: #ccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #fff;
  --accent: #1a1a1a;
  --accent-light: #ffffff;
  --accent-dark: #000000;
  --accent-bg: rgba(0, 0, 0, 0.03);
  --cta: #c0392b;
  --cta-dark: #a93226;
  --cta-light: #e74c3c;
  --green: #16a34a;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all var(--transition); border: 2px solid transparent;
  text-align: center; justify-content: center;
}
.btn-primary {
  background: var(--cta); color: var(--white); border-color: var(--cta);
}
.btn-primary:hover { background: var(--cta-dark); border-color: var(--cta-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 0; transition: all var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0,0,0,.08); padding: 10px 0;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; gap: 4px; font-size: 1.4rem; font-weight: 800; letter-spacing: 1px; }
.logo-edge { color: var(--white); font-family: 'Inter', sans-serif; }
.logo-works { color: var(--accent-light); font-family: 'Inter', sans-serif; font-weight: 700; }
.nav.scrolled .logo-edge { color: var(--dark); }
.nav.scrolled .logo-works { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: rgba(255,255,255,.85); font-weight: 500; font-size: 0.9rem; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav.scrolled .nav-links a { color: var(--gray-600); }
.nav.scrolled .nav-links a:hover { color: var(--dark); }

.nav-cta {
  background: var(--accent) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: all var(--transition); border-radius: 2px;
}
.nav.scrolled .nav-toggle span { background: var(--dark); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 24px 80px; 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(10,10,10,.8) 0%, rgba(10,10,10,.5) 50%, rgba(10,10,10,.3) 100%);
}
.hero-content { position: relative; max-width: 700px; margin: 0 auto 0 0; padding-left: max(24px, calc((100vw - 1200px)/2)); }
.hero-tag {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: var(--accent-light); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--white); margin-bottom: 20px; }
.hero-accent { color: var(--accent-light); font-style: italic; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  padding: 8px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px; color: rgba(255,255,255,.8); font-size: 0.8rem; font-weight: 500;
  backdrop-filter: blur(8px);
}

/* ===== SECTIONS ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 3px; margin-bottom: 12px;
}
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--dark); margin-bottom: 16px; }
.section-desc { color: var(--gray-600); font-size: 1.05rem; }

/* ===== SERVICES ===== */
.services { padding: 100px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  padding: 36px 28px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.service-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-icon {
  width: 56px; height: 56px; border-radius: 12px; background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  color: var(--accent);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--gray-600); font-size: 0.9rem; line-height: 1.6; }

/* ===== CRAFTSMANSHIP ===== */
.craftsmanship { padding: 100px 0; background: var(--gray-100); }
.craft-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.craft-block .section-tag { margin-bottom: 12px; }
.craft-block h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 20px; color: var(--dark); }
.craft-block p { color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.edge-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px;
}
.edge-item {
  padding: 12px 16px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; color: var(--dark);
  transition: all var(--transition);
}
.edge-item:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-bg); }

@media (max-width: 968px) {
  .craft-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  .edge-list { grid-template-columns: 1fr; }
}

/* ===== STONES ===== */
.stones { padding: 100px 0; background: var(--gray-100); }
.stones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stone-card {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow); transition: all var(--transition);
}
.stone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stone-card img { width: 100%; height: 200px; object-fit: cover; }
.stone-info { padding: 24px; }
.stone-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.stone-info p { color: var(--gray-600); font-size: 0.85rem; line-height: 1.6; }

/* ===== GALLERY ===== */
.gallery { padding: 100px 0; background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; aspect-ratio: 4/3;
}
.gallery-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 16px 20px; background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: var(--white); font-size: 0.85rem; font-weight: 500;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* ===== PROCESS ===== */
.process { padding: 100px 0; background: var(--dark); }
.process .section-tag { color: var(--accent-light); letter-spacing: 3px; }
.process .section-header h2 { color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.process-step { text-align: center; }
.step-number {
  font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700;
  color: var(--accent); opacity: 0.6; margin-bottom: 16px;
}
.process-step h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 12px; }
.process-step p { color: rgba(255,255,255,.6); font-size: 0.9rem; line-height: 1.6; }

/* ===== QUOTE FORM ===== */
.quote { padding: 100px 0; background: var(--gray-100); }
.quote-form {
  max-width: 720px; margin: 0 auto; background: var(--white);
  padding: 48px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.85rem; font-weight: 600; color: var(--gray-800); margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; color: var(--dark);
  transition: border-color var(--transition); background: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.upload-area {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 40px; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.upload-area:hover { border-color: var(--accent); background: var(--accent-bg); }
.upload-area svg { color: var(--gray-400); margin: 0 auto 12px; }
.upload-area p { color: var(--gray-600); font-size: 0.9rem; }
.upload-hint { color: var(--gray-400) !important; font-size: 0.8rem !important; margin-top: 4px; }
.file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; border: none !important; padding: 0 !important;
}

.preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px; margin-top: 12px;
}
.preview-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1;
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  background: rgba(0,0,0,.6); border: none; border-radius: 50%; color: white;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.quote-form .btn { width: 100%; }
.form-note { text-align: center; color: var(--gray-400); font-size: 0.8rem; margin-top: 16px; }

.quote-success {
  max-width: 500px; margin: 0 auto; text-align: center; padding: 60px 40px;
}
.quote-success svg { margin: 0 auto 20px; }
.quote-success h3 { font-size: 1.5rem; color: var(--green); margin-bottom: 12px; }
.quote-success p { color: var(--gray-600); }

/* ===== ABOUT ===== */
.about { padding: 100px 0; background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-content .section-tag { margin-bottom: 12px; }
.about-content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 24px; }
.about-content p { color: var(--gray-600); margin-bottom: 16px; line-height: 1.7; }
.about-stats { display: flex; gap: 40px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--gray-200); }
.stat-number { display: block; font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 0.8rem; color: var(--gray-600); font-weight: 500; }
.about-image { border-radius: var(--radius-lg); overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 400px; }

/* ===== CTA ===== */
.cta {
  padding: 80px 0; background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  text-align: center;
}
.cta h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.6); max-width: 520px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { padding: 60px 0 32px; background: var(--black); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo-edge { font-size: 1.2rem; }
.footer-brand .logo-works { font-size: 1.2rem; }
.footer-brand p { color: rgba(255,255,255,.4); font-size: 0.85rem; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-family: 'Inter', sans-serif; font-weight: 600; margin-bottom: 16px; }
.footer-col a {
  display: block; color: rgba(255,255,255,.4); font-size: 0.85rem;
  margin-bottom: 8px; transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent-light); }
.footer-area { color: rgba(255,255,255,.3) !important; font-size: 0.8rem !important; margin-top: 8px; line-height: 1.5; }
.footer-bottom { padding-top: 24px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.3); font-size: 0.8rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 16px; box-shadow: var(--shadow-lg);
  }
  .nav-links.active a { color: var(--dark); font-size: 1rem; }
  .nav-toggle { display: block; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stones-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-wide { grid-column: span 1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero-content { padding-left: 0; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { flex-direction: column; align-items: flex-start; }

  .services-grid { grid-template-columns: 1fr; }
  .stones-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 28px 20px; }
  .about-stats { flex-direction: column; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
