/* CSS Variables */
:root {
  --primary-color: #2C1810;
  --secondary-color: #4A2E20;
  --accent-color: #C9A017;
  --background-color: #FBF6F0;
  --dark-color: #111111;
  --text-color: #333333;
  --border-color: rgba(0,0,0,0.12);
  --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: 'Merriweather', Georgia, serif;
  --alt-font: 'Inter', sans-serif;
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--alt-font);
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--main-font);
  color: var(--primary-color);
}

.gallery-item h4 {
  color: #fff;
}

h1 { font-size: clamp(32px, 6vw, 64px); line-height: 1.2; }
h2 { font-size: clamp(24px, 4vw, 42px); line-height: 1.3; }
h3 { font-size: clamp(18px, 2.8vw, 28px); line-height: 1.4; }
p { font-size: clamp(14px, 1.6vw, 17px); }

/* STARTUP-GRADIENT Preset Rules */
section {
  padding: 56px 16px;
  margin: 0;
}

@media(min-width:1024px) {
  section {
    padding: 64px 24px;
  }
}

h1 .grad, .hero h1 span {
  background: linear-gradient(135deg, var(--accent-color), #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-primary {
  background: var(--accent-color);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent-color) 50%, transparent);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-color);
}

.icon-bg {
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 12px;
  padding: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

/* Header & Mobile Navigation */
.site-header {
  background: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1010;
}

.burger-btn .bar {
  height: 3px;
  width: 100%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--secondary-color);
  z-index: 999;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.site-nav a {
  color: #FBF6F0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--accent-color);
}

/* Burger Trigger */
#menu-toggle:checked ~ .site-nav {
  display: block;
}

#menu-toggle:checked ~ .burger-btn .bar:first-child {
  transform: translateY(8px) 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);
}

/* Desktop Navigation */
@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 24px;
  }
  .site-nav a {
    color: var(--primary-color);
  }
  .site-nav a:hover {
    color: var(--accent-color);
  }
}

/* Hero Section (stats-anchored) */
.hero {
  min-height: 83vh;
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

@media (min-width: 1024px) {
  .hero {
    background-attachment: fixed;
  }
}

.hero-stats-bar {
  background: var(--primary-color);
  border-top: 2px solid var(--accent-color);
  margin-top: 30px;
}

/* CSS-Only Counter Animation */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}

.stat-num {
  --target: 100;
  animation: count-up 2.5s 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 sections */
@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 25%;
}

/* Cascade Cards */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:nth-child(1) { animation-delay: 0s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.24s; }
.card:nth-child(4) { animation-delay: 0.36s; }

/* Custom Utilities */
.bg-light {
  background-color: var(--background-color);
}

.bg-dark {
  background-color: var(--primary-color);
}

.text-accent {
  color: var(--accent-color);
}

/* Touch Targets & Buttons */
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

/* Contact and Forms */
input, textarea {
  font-family: var(--alt-font);
  font-size: 14px;
  background-color: #fff;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* Footer logo filter */
footer img[alt="logo"] {
  filter: brightness(0) invert(1);
}