/* Palette: Mahogany-Amber */
:root {
  --primary-color: #4A1C10;
  --secondary-color: #6B2A18;
  --accent-color: #D4900A;
  --background-color: #FDF0EC;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(74, 28, 16, 0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.16);
  --radius-sm: 6px; 
  --radius-md: 12px; 
  --radius-lg: 20px; 
  --radius-xl: 32px;
  --main-font: 'Playfair Display', Georgia, serif;
  --alt-font: 'Roboto', sans-serif;
  --hero-screen: 85vh;
}

/* Base Reset & Mobile-First Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--alt-font);
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Retro-Classic Preset Rules (Copied Literally) */
section {
  padding: 72px 16px;
}
@media(min-width:1024px) {
  section {
    padding: 80px 24px;
  }
}
h1, h2, h3 {
  font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
}
.card {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  background-color: #FFFFFF;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}
.btn {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  background: transparent;
  color: var(--primary-color);
  padding: 12px 24px;
  font-weight: bold;
  display: inline-block;
  text-align: center;
  min-height: 44px;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.btn:hover {
  transform: translateY(-2px);
}
hr {
  border: none;
  text-align: center;
}
hr::before {
  content: "— * —";
  display: block;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin: 24px 0;
}

/* Typography Scale */
h1 {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
}
h2 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}
h3 {
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--secondary-color);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.7;
}

/* Header & Hamburger Menu */
.site-header {
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  z-index: 1000;
}
.logo img {
  max-height: 40px;
  width: auto;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #FFFFFF;
  border-bottom: 2px solid var(--primary-color);
  z-index: 999;
  padding: 16px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-nav a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--accent-color);
}

/* Burger Trigger */
#menu-toggle:checked ~ .site-nav {
  display: block;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}
.burger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(9px) rotate(45deg);
}
#menu-toggle:checked ~ .burger-btn .bar:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .burger-btn .bar:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    border-bottom: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
}

/* Hero Section (layered-depth) */
.hero-section {
  min-height: var(--hero-screen);
  padding: 80px 16px;
}
.hero-layer-1 {
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.5);
}
.hero-layer-2 {
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  background-color: var(--primary-color);
  opacity: 0.55;
}
.hero-kicker {
  color: var(--accent-color);
  font-family: var(--alt-font);
  font-weight: 700;
}
.btn-primary-alt {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #FFFFFF;
}
.btn-primary-alt:hover {
  background-color: #B27708;
}
.btn-outline-white {
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.btn-outline-white:hover {
  background-color: rgba(255,255,255,0.1);
}

/* Middle Sections Custom Styles */
.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
.bg-light {
  background-color: rgba(74, 28, 16, 0.03);
}
.bg-dark {
  background-color: var(--primary-color);
}

/* Section Divider */
.section-divider::before {
  content: "— * —";
  display: block;
  text-align: center;
  font-size: 1.2rem;
  color: var(--accent-color);
  margin: 32px 0;
}

/* Stats Counter Animation */
@property --count { 
  syntax: '<integer>'; 
  initial-value: 0; 
  inherits: false; 
}
.stat-num {
  --target: 80;
  animation: count-up 2s ease-out forwards;
  animation-timeline: view(); 
  animation-range: entry 0% entry 60%;
  counter-reset: n var(--count);
}
.stat-num::after { 
  content: counter(n); 
}
@keyframes count-up { 
  from { --count: 0; } 
  to { --count: var(--target); } 
}

/* Scroll Reveal */
@keyframes reveal-up { 
  from { opacity: 0; transform: translateY(32px); } 
  to { opacity: 1; transform: translateY(0); } 
}
.reveal {
  animation: reveal-up linear both;
  animation-timeline: view(); 
  animation-range: entry 0% entry 30%;
}

/* Before/After Custom Stylings */
.before-card {
  border-color: #EF4444;
}
.after-card {
  border-color: #22C55E;
}
.text-danger {
  color: #EF4444;
}
.text-success {
  color: #22C55E;
}

/* Testimonial Avatar Custom Stylings */
.avatar-circle {
  background-color: var(--accent-color);
  border: 3px solid var(--primary-color);
}

/* Contact Form Specifics */
.contact-form-wrapper input,
.contact-form-wrapper textarea {
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  background-color: #FFFFFF;
}
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 144, 10, 0.2);
}
.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
}
.btn-primary:hover {
  background-color: var(--secondary-color);
}

/* Footer Logo Styling */
footer img[alt="logo"] { 
  filter: brightness(0) invert(1); 
}

/* Responsive Grids */
.grid {
  display: grid;
}
/* Ensure clean grid columns on standard devices */
@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}