/* Oak & Colour — main stylesheet */

:root {
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Jost', 'Segoe UI', system-ui, sans-serif;

  --color-bg: #f8f3ea;
  --color-bg-alt: #efe7d6;
  --color-surface: #ffffff;
  --color-ink: #2f2a21;
  --color-ink-soft: #6c6255;
  --color-olive: #79805c;
  --color-olive-dark: #5b6144;
  --color-olive-light: #aab08c;
  --color-gold: #b08c54;
  --color-band: #dbd6bd;
  --color-band-ink: #3a3a2c;
  --color-border: rgba(47, 42, 33, 0.12);
  --color-whatsapp: #4baa4f;

  --shadow-sm: 0 2px 10px rgba(40, 35, 25, 0.08);
  --shadow-md: 0 16px 40px rgba(40, 35, 25, 0.14);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 26px;
  --container-width: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 260ms;
  --header-h: 84px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * , *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.18; margin: 0; color: var(--color-ink); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-olive);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  will-change: transform;
}
.btn:active { transform: scale(0.96); }
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--color-olive);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-olive-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-olive); color: var(--color-olive-dark); transform: translateY(-2px); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

.btn-whatsapp svg { color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 243, 234, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow-sm);
  height: 72px;
}
.header-inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-logo { border-radius: 50%; transition: transform var(--dur) var(--ease); }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.05); }
.brand-tagline {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.site-header:not(.is-scrolled) .brand-tagline { color: rgba(255,255,255,0.92); text-shadow: 0 1px 6px rgba(0,0,0,0.25); }

.main-nav ul { display: flex; gap: 34px; }
.main-nav a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  color: var(--color-ink);
  transition: color var(--dur) var(--ease);
}
.site-header:not(.is-scrolled) .main-nav a { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.25); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 2px;
  background: currentColor;
  transition: right var(--dur) var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.site-header:not(.is-scrolled) .lang-switch { border-color: rgba(255,255,255,0.5); }
.lang-btn {
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: inherit;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-header:not(.is-scrolled) .lang-btn { color: #fff; }
.lang-btn.is-active { background: var(--color-olive); color: #fff; }
.site-header:not(.is-scrolled) .lang-btn.is-active { background: #fff; color: var(--color-olive-dark); }

.header-whatsapp { padding: 10px 18px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  flex: none;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  margin: 0 auto;
  background: var(--color-ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { background: var(--color-ink) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(30,27,20,0.55) 0%, rgba(30,27,20,0.35) 45%, rgba(30,27,20,0.65) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 24px 40px;
  text-align: center;
}
.hero-brand {
  font-family: var(--font-serif);
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  letter-spacing: 0.14em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero-brand::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  background: #d9c98c;
  margin: 20px auto 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-olive-dark);
  margin-bottom: 14px;
  font-weight: 600;
}
.eyebrow-light { color: #f1ead9; margin-bottom: 48px; }
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 22px;
}
.hero-title span { display: block; }
.hero-title .accent { color: #d9c98c; }
.hero-desc {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.92);
}
.hero-ctas { display: flex; justify-content: center; }
.hero-cta-sub { font-family: var(--font-serif); margin-top: 16px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 18px; height: 18px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-sub { margin-top: 18px; color: var(--color-ink-soft); font-size: 1.02rem; }
.divider {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--color-gold);
  margin: 18px auto 0;
}
.divider-left { margin: 18px 0 0; }

/* ---------- Services ---------- */
.services { background: var(--color-bg-alt); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 34px 26px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-olive-dark);
  margin-bottom: 18px;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.service-card:hover .service-icon { background: var(--color-olive); color: #fff; transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--color-ink-soft); font-size: 0.95rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--color-bg-alt);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  animation: gallery-in 600ms var(--ease) forwards;
}
@keyframes gallery-in { to { opacity: 1; transform: none; } }
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 500ms var(--ease);
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(20,18,12,0.55) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item[hidden] { display: none; }

.gallery-more-wrap { text-align: center; margin-top: 40px; }
#gallery-load-more[hidden] { display: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.about-copy p { color: var(--color-ink-soft); margin-top: 18px; }
.about-copy h2 { margin-top: 6px; }
.about-signature { margin-top: 24px !important; font-family: var(--font-serif); font-style: italic; color: var(--color-ink) !important; font-size: 1.1rem; }

/* ---------- Values band ---------- */
.values { background: var(--color-band); color: var(--color-band-ink); padding: 80px 0; }
.values-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.values-text h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; gap: 4px; }
.values-list { display: flex; flex-direction: column; gap: 22px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-icon {
  flex: none;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  color: var(--color-olive-dark);
}
.value-icon svg { width: 20px; height: 20px; }
.value-item h3 { font-size: 1.02rem; font-family: var(--font-sans); font-weight: 600; margin-bottom: 4px; }
.value-item p { font-size: 0.9rem; color: rgba(58,58,44,0.75); }
.values-cta { grid-column: 1 / -1; text-align: center; margin-top: 8px; }
.values-cta p { margin-top: 14px; font-size: 0.9rem; color: rgba(58,58,44,0.75); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; align-self: start; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
a.contact-info-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-info-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-olive-dark);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-ink-soft); }
.contact-info-value { display: block; font-weight: 500; margin-top: 2px; }

.contact-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.86rem; font-weight: 500; color: var(--color-ink-soft); }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--color-olive);
  box-shadow: 0 0 0 4px rgba(121, 128, 92, 0.15);
}
.form-row input:invalid:not(:placeholder-shown), .form-row textarea:invalid:not(:placeholder-shown) {
  border-color: #c1553f;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#cf-submit { position: relative; margin-top: 6px; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 700ms linear infinite;
}
#cf-submit.is-loading .btn-label { opacity: 0.6; }
#cf-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  animation: fade-in 400ms var(--ease);
}
.form-feedback.is-success { background: #eaf1e4; color: #3d5a2c; }
.form-feedback.is-error { background: #f7e6e2; color: #7a2f1e; }
.form-feedback-title { font-weight: 600; margin-bottom: 4px !important; }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.75); padding: 30px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: #fff; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(30, 30, 20, 0.28);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(75, 170, 79, 0.55);
  animation: wa-pulse 2.6s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(30,30,20,0.36); }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(75, 170, 79, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(75, 170, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(75, 170, 79, 0); }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 900;
  background: rgba(20, 18, 13, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 220ms var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: min(92vw, 1100px); max-height: 86vh; text-align: center; }
.lightbox-stage img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: zoom-in 260ms var(--ease);
}
@keyframes zoom-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }
.lightbox-counter { color: rgba(255,255,255,0.7); margin-top: 14px !important; font-size: 0.85rem; letter-spacing: 0.05em; }
.lightbox-close, .lightbox-nav {
  position: absolute;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.08);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.2); transform: scale(1.06); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
  .values-inner { grid-template-columns: 1fr; }
  .values-cta { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 72px; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    padding: 10px 24px 26px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; color: var(--color-ink) !important; text-shadow: none !important; }
  .site-header:not(.is-scrolled) .main-nav:not(.is-open) { visibility: hidden; }
  .nav-toggle { display: flex; }
  .header-whatsapp { display: none; }

  .hero-content { padding-top: calc(var(--header-h) + 24px); }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .contact-form { padding: 26px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 10px; right: 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-tagline { display: none; }
}
