/* 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(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: 'Cormorant Garamond', serif;
  --alt-font: 'Source Sans 3', sans-serif;
}

/* Base reset & typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--alt-font);
  background-color: #ffffff;
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* BOLD-GEOMETRIC PRESET RULES (Copied Literally) */
section{padding:72px 16px} @media(min-width:1024px){section{padding:80px 24px}} #hero{clip-path:polygon(0 0,100% 0,100% 92%,0 100%)} section:nth-child(even){clip-path:polygon(0 3%,100% 0,100% 97%,0 100%)} .btn{width:100%;max-width:360px;display:block;margin:0 auto} h2{font-size:clamp(2rem,5vw,3.2rem)}

/* Typography scale adjustments */
h1 {
  font-family: var(--main-font);
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 700;
}
h2 {
  font-family: var(--main-font);
  font-weight: 700;
  line-height: 1.2;
}
h3 {
  font-family: var(--main-font);
  font-size: clamp(18px, 2.8vw, 28px);
  font-weight: 600;
  color: var(--primary-color);
}
p {
  font-size: clamp(14px, 1.6vw, 17px);
}

.kicker {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-color);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  color: var(--primary-color);
  margin-bottom: 24px;
}

/* Section Background Alternating adjustments */
section:nth-child(even) {
  background-color: var(--background-color);
}

#contact-faq {
  padding-top: 92px;
}

/* Buttons styling */
.btn {
  font-family: var(--alt-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  text-align: center;
  border-radius: 0; /* Geometric styling */
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  min-height: 44px;
  border: 2px solid transparent;
}
.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--primary-color);
}

/* Header & Burger Menu */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1000;
}
.logo img {
  max-height: 40px;
  width: auto;
}
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1010;
}
.burger-btn .bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}
.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 3px solid var(--primary-color);
  padding: 20px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-nav a {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
}
.site-nav a:hover {
  color: var(--accent-color);
}

#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(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
  .burger-btn {
    display: none;
  }
  .site-nav {
    display: flex !important;
    position: static;
    background: transparent;
    box-shadow: none;
    border-bottom: none;
    padding: 0;
  }
  .site-nav ul {
    flex-direction: row;
    gap: 32px;
  }
}

/* HERO SECTION (layered-depth) */
#hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-layer-1 {
  background-image: url('./img/bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(4px) brightness(0.45);
  z-index: 1;
}
.hero-layer-2 {
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  background: var(--primary-color);
  opacity: 0.55;
  z-index: 2;
}
.hero-layer-3 {
  z-index: 3;
  padding: 48px 16px;
}
.hero-content {
  max-width: 800px;
  color: #ffffff;
}
.hero-content h1 {
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: clamp(16px, 2.2vw, 20px);
  max-width: 650px;
  margin: 0 auto 36px auto;
  opacity: 0.95;
}

/* SECTION 1: Testimonial Wall */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.testimonial-card {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  box-shadow: 4px 4px 0 var(--primary-color);
  padding: 24px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--accent-color);
}
.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.quote {
  font-style: italic;
  margin-bottom: 16px;
}
.author {
  font-weight: 700;
  color: var(--primary-color);
}
.location {
  font-size: 0.85rem;
  color: #666666;
}

/* SECTION 2: Stats Counter */
@property --count {
  syntax: '<integer>';
  initial-value: 0;
  inherits: false;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.stat-item {
  padding: 24px;
}
.stat-num {
  --target: 80;
  font-family: var(--main-font);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--primary-color);
  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);
}
.stat-unit {
  font-family: var(--main-font);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--accent-color);
}
@keyframes count-up {
  from { --count: 0; }
  to { --count: var(--target); }
}
.stat-label {
  font-size: 1rem;
  color: var(--text-color);
  max-width: 280px;
  margin: 12px auto 0 auto;
}

/* SECTION 3: Expert Quote */
#expert-quote {
  background: var(--primary-color);
  color: #F5F5F5;
  position: relative;
}
.quote-icon {
  font-size: 6rem;
  font-family: var(--main-font);
  color: var(--accent-color);
  opacity: 0.3;
  line-height: 0.8;
  margin-bottom: -20px;
}
.expert-text {
  font-family: var(--main-font);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  max-width: 820px;
  margin: 0 auto 24px auto;
  line-height: 1.4;
}
.expert-author {
  font-weight: 700;
  display: block;
  font-size: 1.1rem;
  color: var(--accent-color);
}
.expert-title {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* SECTION 4: Topic Overview Cards */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.topic-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent-color);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.topic-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.topic-card h3 {
  margin-bottom: 12px;
}
.topic-card p {
  margin-bottom: 20px;
  color: #555555;
}
.topic-list {
  list-style-type: none;
}
.topic-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.topic-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* SECTION 5: About/Values */
.values-content h2 {
  text-align: left;
}
.value-block h4 {
  font-family: var(--main-font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}
.values-image-wrapper {
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 8px 8px 0 var(--accent-color);
}
.values-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* SECTION 6: Contact + FAQ */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item .icon {
  font-size: 1.5rem;
  background: var(--background-color);
  padding: 12px;
  border: 1px solid var(--primary-color);
}
.contact-item h5 {
  font-weight: 700;
  color: var(--primary-color);
}

.contact-form {
  background: #ffffff;
  border: 2px solid var(--primary-color);
  padding: 32px;
  box-shadow: 6px 6px 0 var(--primary-color);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--primary-color);
  border-radius: 0;
  font-family: var(--alt-font);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}
.checkbox-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkbox-group input {
  margin-top: 4px;
}
.checkbox-group label {
  font-weight: 400;
  font-size: 0.85rem;
}

/* FAQ Styling */
.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border-left: 4px solid var(--accent-color);
  padding: 16px 24px;
}
.faq-item h4 {
  font-family: var(--main-font);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: #ffffff;
  border-top: 4px solid var(--accent-color);
}
footer img {
  max-height: 40px;
  filter: brightness(0) invert(1);
}
.footer-nav a {
  color: #e5e5e5;
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--accent-color);
}
.footer-copy {
  opacity: 0.8;
}

/* Scroll Reveal animation */
@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%;
}