/* ============================================
   Quality Barns and More — Stylesheet
   Palette: Terracotta + Sand + Warm Neutrals
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --terracotta:    #C0603A;
  --terracotta-dk: #9E4A28;
  --terracotta-lt: #D4845E;
  --sand:          #F5D9A8;
  --sand-lt:       #FDF3E0;
  --sand-mid:      #E8C98A;
  --cream:         #FFF9F0;
  --warm-white:    #FFFCF7;
  --brown-dk:      #3D2B1F;
  --brown-mid:     #5C4033;
  --brown-lt:      #8B6F5E;
  --text-dark:     #2C1E14;
  --text-mid:      #5C4033;
  --text-light:    #8B7355;
  --white:         #FFFFFF;
  --shadow-sm:     0 2px 8px rgba(61,43,31,.08);
  --shadow-md:     0 8px 30px rgba(61,43,31,.12);
  --shadow-lg:     0 16px 50px rgba(61,43,31,.15);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --transition:    .3s ease;
  --font-body:     'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-display:  'Playfair Display', 'Georgia', serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--terracotta-dk); }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  padding: 13px 28px; border-radius: var(--radius-xl); border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); text-align: center; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--sand); outline-offset: 3px; }
.btn-primary {
  background: var(--terracotta); color: var(--white); border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(192,96,58,.35);
}
.btn-primary:hover { background: var(--terracotta-dk); border-color: var(--terracotta-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(192,96,58,.4); color: var(--white); }
.btn-outline-light {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,.7);
}
.btn-outline-light:hover { background: var(--white); color: var(--terracotta); border-color: var(--white); transform: translateY(-2px); }
.btn-outline-terracotta {
  background: transparent; color: var(--terracotta); border-color: var(--terracotta);
}
.btn-outline-terracotta:hover { background: var(--terracotta); color: var(--white); transform: translateY(-2px); }
.btn-sm { padding: 9px 20px; font-size: .85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,252,247,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(192,96,58,.1);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--brown-dk); line-height: 1.2; }
.logo-accent { color: var(--terracotta); }
.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a { font-weight: 600; font-size: .9rem; color: var(--brown-mid); padding: 8px 14px; border-radius: var(--radius-sm); transition: all var(--transition); }
.main-nav a:hover { color: var(--terracotta); background: rgba(192,96,58,.07); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; position: relative; }
.hamburger, .hamburger::before, .hamburger::after { display: block; width: 22px; height: 2px; background: var(--brown-dk); border-radius: 2px; transition: all var(--transition); position: absolute; left: 50%; transform: translateX(-50%); }
.hamburger::before { top: 13px; }
.hamburger::after { bottom: 13px; }
.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { bottom: 50%; transform: translate(-50%, 50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(255,252,247,.98); backdrop-filter: blur(16px);
    padding: 32px 24px;
    transform: translateX(100%); opacity: 0; pointer-events: none;
    transition: all .35s ease;
  }
  .main-nav.open { transform: translateX(0); opacity: 1; pointer-events: all; }
  .main-nav ul { flex-direction: column; gap: 4px; align-items: stretch; }
  .main-nav a { font-size: 1.1rem; padding: 14px 16px; text-align: center; }
  .main-nav .btn { margin-top: 16px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(44,30,20,.78) 0%, rgba(61,43,31,.65) 50%, rgba(192,96,58,.45) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 120px 24px 80px;
  max-width: 820px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,217,168,.2); border: 1px solid rgba(245,217,168,.4);
  color: var(--sand); font-weight: 700; font-size: .85rem;
  padding: 8px 18px; border-radius: var(--radius-xl); margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,252,247,.88);
  max-width: 600px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-bottom: 48px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.hero-trust .trust-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,252,247,.9); font-weight: 600; font-size: .9rem; }
.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,252,247,.7); animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* ---------- SECTION COMMON ---------- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--terracotta); margin-bottom: 12px;
  background: rgba(192,96,58,.08); padding: 6px 14px; border-radius: var(--radius-xl);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--brown-dk); line-height: 1.2; margin-bottom: 16px;
}
.section-subtitle { font-size: 1.1rem; color: var(--text-mid); max-width: 560px; line-height: 1.7; }

/* ---------- SERVICES ---------- */
.services { padding: 100px 0; background: var(--cream); }
.services .container { text-align: center; }
.services .section-subtitle { margin: 0 auto 56px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 28px;
  text-align: left; box-shadow: var(--shadow-sm); border: 1px solid rgba(192,96,58,.06);
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(192,96,58,.15); }
.service-icon { margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--brown-dk); margin-bottom: 10px; }
.service-card p { color: var(--text-mid); font-size: .95rem; line-height: 1.7; }

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- ABOUT ---------- */
.about { padding: 100px 0; background: var(--warm-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: 420px; object-fit: cover; }
.about-img-secondary {
  position: absolute; bottom: -40px; right: -30px;
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 5px solid var(--warm-white);
}
.about-img-secondary img { width: 100%; height: 200px; object-fit: cover; }
.about-badge {
  position: absolute; top: -20px; left: -20px;
  background: var(--terracotta); color: var(--white);
  font-weight: 800; font-size: .8rem; padding: 12px 18px;
  border-radius: var(--radius-md); display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 8px 24px rgba(192,96,58,.4);
}
.about-content .section-subtitle { margin-bottom: 20px; }
.about-content p { color: var(--text-mid); margin-bottom: 16px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 32px; }
.about-feature { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; color: var(--brown-dk); }
.about-content .btn { margin-top: 8px; }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 80px; }
  .about-img-secondary { right: 10px; bottom: -20px; }
}

/* ---------- GALLERY ---------- */
.gallery { padding: 100px 0; background: var(--cream); }
.gallery .container { text-align: center; }
.gallery .section-subtitle { margin: 0 auto 56px; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-item { border-radius: var(--radius-lg); overflow: hidden; position: relative; box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery-item img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(44,30,20,.8));
  color: var(--white); font-weight: 700; font-size: .95rem;
  padding: 40px 20px 18px;
}

@media (max-width: 600px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item img { height: 240px; } }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding: 100px 0; background: var(--warm-white); }
.testimonials .container { text-align: center; }
.testimonials .section-subtitle { margin: 0 auto 56px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: left; box-shadow: var(--shadow-sm); border: 1px solid rgba(192,96,58,.06);
  transition: all var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-text { font-size: .95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.testimonial-author { font-weight: 800; font-size: .85rem; color: var(--terracotta); }

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }

/* ---------- CTA BANNER ---------- */
.cta-banner { position: relative; padding: 80px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(158,74,40,.9) 0%, rgba(61,43,31,.85) 100%); }
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 680px; margin: 0 auto; }
.cta-content h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white); margin-bottom: 16px; }
.cta-content p { font-size: 1.1rem; color: rgba(255,252,247,.88); margin-bottom: 36px; line-height: 1.7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------- CONTACT ---------- */
.contact { padding: 100px 0; background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info .section-subtitle { margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin-top: 32px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { flex-shrink: 0; width: 48px; height: 48px; background: rgba(192,96,58,.1); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; }
.contact-item strong { display: block; font-size: .95rem; color: var(--brown-dk); margin-bottom: 4px; }
.contact-item p { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.contact-item a { color: var(--terracotta); }
.contact-item a:hover { color: var(--terracotta-dk); }
.contact-form-wrap {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-md); border: 1px solid rgba(192,96,58,.08);
}
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--brown-dk); margin-bottom: 6px; }
.form-note { font-size: .85rem; color: var(--text-light); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; font-size: .85rem; color: var(--brown-dk); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid rgba(192,96,58,.15);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: .95rem;
  color: var(--text-dark); background: var(--sand-lt); transition: all var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--terracotta); background: var(--white);
  box-shadow: 0 0 0 4px rgba(192,96,58,.1);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-light); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 24px; margin-top: 16px;
  background: rgba(45,139,94,.06); border: 2px solid rgba(45,139,94,.2);
  border-radius: var(--radius-md); color: var(--brown-dk);
}
.form-success strong { color: #2D8B5E; }
.form-success p { font-size: .9rem; color: var(--text-mid); }

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .contact-form-wrap { padding: 28px; } }
@media (max-width: 500px) { .contact-form-wrap { padding: 20px; } }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--brown-dk); color: rgba(255,252,247,.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { margin-top: 16px; font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--sand); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .9rem; color: rgba(255,252,247,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--sand); }
.footer-contact address { font-style: normal; font-size: .9rem; line-height: 1.8; }
.footer-contact a { color: rgba(255,252,247,.65); }
.footer-contact a:hover { color: var(--sand); }
.footer-bottom { border-top: 1px solid rgba(255,252,247,.1); padding: 20px 0; text-align: center; font-size: .82rem; color: rgba(255,252,247,.4); }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
