/* ================================================
   RESINPRO INSTALLATIONS — SHARED STYLESHEET
   Custom layer on top of Tailwind CDN
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600&display=swap');

/* ── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: #F7F3EE;
  color: #1E1B18;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── CUSTOM PROPERTIES ──────────────────────────── */
:root {
  --obsidian:   #F7F3EE;
  --dark:       #FFFFFF;
  --warm-dark:  #EDE7DE;
  --gold:       #C9A84C;
  --gold-light: #DFC06A;
  --amber:      #B5763A;
  --stone:      #6B5B48;
  --text:       #1E1B18;
  --muted:      #9A8B7A;
  --border:     #DDD5CA;
}

/* ── TYPOGRAPHY ─────────────────────────────────── */
.font-display { font-family: 'Playfair Display', serif; }

.label-caps {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.text-gold    { color: var(--gold); }
.text-stone   { color: var(--stone); }
.text-muted   { color: var(--muted); }
.text-warm    { color: var(--text); }

/* ── NAVIGATION ─────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s ease, border-bottom 0.4s ease;
  background: transparent;
}

#site-nav.scrolled {
  background: rgba(247, 243, 238, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(30, 27, 24, 0.07);
}

.nav-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

.nav-link.active { color: var(--gold); }
.nav-link.active::after { width: 100%; }

/* ── BUTTONS ────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #1E1B18;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(30, 27, 24, 0.28);
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0;
  border: none;
  cursor: pointer;
  transition: gap 0.25s ease;
}

.btn-ghost:hover { gap: 0.9rem; }

.btn-ghost::after {
  content: '→';
  font-size: 1rem;
  font-weight: 300;
  transition: transform 0.25s ease;
}

.btn-ghost:hover::after { transform: translateX(4px); }

/* ── IMAGE PLACEHOLDERS ─────────────────────────── */
.img-placeholder {
  background: linear-gradient(135deg, #EDE7DE 0%, #E4DBD0 50%, #EDE7DE 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(181, 118, 58, 0.07) 20px,
    rgba(181, 118, 58, 0.07) 21px
  );
}

.img-placeholder-label {
  position: relative;
  z-index: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0.3rem 0.8rem;
}

.img-placeholder-desc {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: var(--stone);
  max-width: 260px;
  line-height: 1.5;
}

/* ── SECTIONS ───────────────────────────────────── */
.section-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}

.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(181, 118, 58, 0.10);
  line-height: 1;
  position: absolute;
  top: -1rem;
  left: -1rem;
  pointer-events: none;
  user-select: none;
}

.border-left-gold {
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
}

/* ── HERO ───────────────────────────────────────── */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(247, 243, 238, 0.93) 0%,
    rgba(247, 243, 238, 0.62) 52%,
    rgba(247, 243, 238, 0.10) 100%
  );
  z-index: 1;
}

/* ── TRUST BAR ──────────────────────────────────── */
.trust-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

/* ── PROCESS STEP ───────────────────────────────── */
.process-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(181, 118, 58, 0.22);
  line-height: 1;
  transition: color 0.3s ease;
}

.process-step:hover .process-step-num {
  color: rgba(181, 118, 58, 0.55);
}

/* ── SERVICE CARDS ──────────────────────────────── */
.service-block {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-block:hover { transform: translateY(-4px); }

.service-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.95) 0%, rgba(20,20,20,0.4) 60%, transparent 100%);
  transition: background 0.3s ease;
}

.service-block:hover .service-block-overlay {
  background: linear-gradient(to top, rgba(20,20,20,0.98) 0%, rgba(20,20,20,0.6) 70%, rgba(20,20,20,0.2) 100%);
}

/* ── TESTIMONIAL ────────────────────────────────── */
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 7rem;
  font-weight: 900;
  color: rgba(181, 118, 58, 0.20);
  line-height: 0.5;
  display: block;
  margin-bottom: -1rem;
}

/* ── FOOTER ─────────────────────────────────────── */
.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.25s ease;
}

.footer-link:hover { color: var(--gold); }

/* ── MOBILE NAV ──────────────────────────────────── */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(247, 243, 238, 0.99);
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

#mobile-menu.open { display: flex; }

/* ── CONTACT FORM ───────────────────────────────── */
.form-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.875rem 0;
  outline: none;
  transition: border-color 0.25s ease;
}

.form-field:focus { border-color: var(--gold); }

.form-field::placeholder { color: var(--muted); }

.form-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.25rem;
}

select.form-field option { background: var(--dark); }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up {
  animation: fadeInUp 0.8s ease both;
}

.anim-delay-1 { animation-delay: 0.15s; }
.anim-delay-2 { animation-delay: 0.3s; }
.anim-delay-3 { animation-delay: 0.45s; }
.anim-delay-4 { animation-delay: 0.6s; }

/* ── HORIZONTAL RULE ─────────────────────────────── */
.hr-gold {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── UTILITY ─────────────────────────────────────── */
.clip-angle { clip-path: polygon(0 0, 100% 0, 100% 92%, 97% 100%, 0 100%); }
.clip-angle-r { clip-path: polygon(0 0, 100% 0, 100% 100%, 3% 100%, 0 92%); }

.gold-bar {
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  .section-number { font-size: 4rem; }
  .trust-stat-num { font-size: 2.2rem; }
}
