/* =============================================
   REFORMA — Main Stylesheet v2
   Branding: Forest Green (#2D6A4F) + Gold (#C9A84C)
   Font: Inter (self-hosted — GDPR compliant)
============================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green:       #2D6A4F;
  --green-dark:  #1B4332;
  --green-light: #40916C;
  --accent:      #52B788;
  --gold:        #D4A855;
  --gold-light:  #F0C96A;
  --gold-dark:   #A8822E;
  --black:       #111111;
  --dark:        #1A1A1A;
  --grey:        #4B5563;
  --grey-light:  #6B7280;
  --light:       #F4F6F3;
  --white:       #FFFFFF;
  --border:      #E5E7EB;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.15);
  --font:        'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
}

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

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 15px 36px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.45);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 15px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.55);
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }

.btn-nav {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.btn-nav:hover { background: var(--gold-light); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: 68px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.burger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 4px 8px; }

.nav-links.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0; right: 0;
  background: var(--white);
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  gap: 0;
}
.nav-links.nav-open li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.nav-links.nav-open li:last-child { border-bottom: none; padding-top: 16px; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--green-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-renovation.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(17,17,17,0.25) 0%,
    rgba(27,67,50,0.55) 50%,
    rgba(17,17,17,0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
  padding-top: 80px;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.2rem;
  opacity: 0.88;
  margin-bottom: 12px;
  font-weight: 400;
}

.hero-phone { margin-bottom: 32px; }
.phone-link {
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 1;
  letter-spacing: 0.01em;
}
.phone-link:hover { text-decoration: underline; }

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.018) 40px,
    rgba(255,255,255,0.018) 80px
  );
}

.stats-inner {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 4px;
  letter-spacing: 0.03em;
}

/* ---- SECTION HEADING STYLE ---- */
section { padding: 100px 0; }

h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--black);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 12px;
  border-radius: 2px;
}

.section-sub {
  color: var(--grey);
  font-size: 1.1rem;
  margin-top: 8px;
  margin-bottom: 56px;
}

/* ---- SERVICES ---- */
.services { background: var(--light); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s, border-left 0.25s;
  border-left: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--gold);
}

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--green);
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.service-card p { color: var(--grey); font-size: 0.95rem; line-height: 1.6; }

/* ---- PROJECTS ---- */
.projects { background: var(--dark); }
.projects h2 { color: var(--white); }
.projects h2::after { background: var(--gold); }
.projects .section-sub { color: rgba(255,255,255,0.55); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  background: #222;
  transition: transform 0.25s, box-shadow 0.25s;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.project-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.project-card:hover .project-img { transform: scale(1.04); }

.project-info { padding: 22px 24px; }
.project-info h3 {
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.05rem;
}
.project-info p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }

/* ---- ABOUT ---- */
.about { background: var(--light); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 { display: inline-block; }

.about-text p {
  color: var(--grey);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-photo {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about-contact-hint {
  margin-top: 24px;
  font-size: 0.95rem;
}
.about-contact-hint a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.about-contact-hint a:hover { text-decoration: underline; }

/* ---- CONTACT ---- */
.contact { background: var(--white); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-trust {
  padding-top: 8px;
}

.contact-trust h2 { display: inline-block; }

.trust-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.trust-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.trust-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 1.3rem;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--black);
}
.trust-item p { font-size: 0.875rem; color: var(--grey); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.01em;
}
.form-field .optional { font-weight: 400; color: var(--grey-light); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.contact-form textarea { resize: vertical; }

.form-consent { margin-top: 4px; }
.checkbox-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.55;
}
.checkbox-label input[type="checkbox"] {
  width: 18px; height: 18px; min-width: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}
.checkbox-label a { color: var(--green); text-decoration: underline; }

.form-note { font-size: 0.78rem; color: var(--grey-light); margin-top: -6px; }

.form-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  font-size: 1.05rem;
  color: #166534;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 56px 0 36px;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-brand p { color: rgba(255,255,255,0.4); margin-top: 8px; font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.8rem; }

/* ---- SR ONLY ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---- STICKY MOBILE CTA ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-btn {
  flex: 1; text-align: center; padding: 13px;
  border-radius: var(--radius); font-weight: 700;
  font-size: 0.9rem; text-decoration: none;
}
.sticky-btn-phone {
  background: var(--light); color: var(--black);
  border: 1px solid var(--border);
}
.sticky-btn-contact { background: var(--gold); color: var(--black); }

/* ---- NAVBAR FALLBACK ---- */
@supports not (backdrop-filter: blur(1px)) {
  .navbar { background: rgba(255,255,255,0.99); }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }

  .hero-content { max-width: 100%; }
  .hero-cta { flex-direction: column; }

  .stats-inner { gap: 40px; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { height: 280px; }

  .form-row { grid-template-columns: 1fr; }

  .footer-inner { gap: 20px; }

  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2rem; }
  section { padding: 72px 0; }
}
