/* Sandstone Villa — Base CSS */
/* Template: mediterranean-warm, warm sandstone and olive tones, villa serenity */
/* Colors overridden by variants/{color}/colors.css */

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Karla:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

:root {
  --color-primary: #6B7C4E;
  --color-secondary: #F0EBDF;
  --color-accent: #B87348;
  --color-text: #2C2A1E;
  --color-ink:            #2C2A1E;
  --color-on-ink:         #ffffff;
  --color-text-light: #6D6A5A;
  --color-bg: #FAF5ED;
  --color-bg-alt: #F3EDE2;
  --color-border: #D9D1C2;
  --color-muted: #EDE7D9;

  --font-heading: 'Spectral', 'Georgia', serif;
  --font-body: 'Karla', 'Helvetica Neue', sans-serif;
  --fs-hero: clamp(2.75rem, 6.5vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.625rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --lh-heading: 1.1;
  --lh-body: 1.75;

  --space-section: 7rem;
  --space-component: 2.75rem;
  --space-element: 1.25rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-arch: 50% 50% 0 0;
  --shadow-card: 0 2px 8px rgba(44, 42, 30, 0.05);
  --shadow-hover: 0 8px 32px rgba(44, 42, 30, 0.1);
  --shadow-elevated: 0 12px 48px rgba(44, 42, 30, 0.12);

  --max-width: 1200px;
  --container-padding: 1.5rem;

  --olive: var(--color-primary);
  --terracotta: var(--color-accent);
  --gradient-olive: linear-gradient(135deg, var(--color-primary) 0%, #8FA06A 50%, var(--color-primary) 100%);
  --gradient-terracotta: linear-gradient(135deg, var(--color-accent) 0%, #D4945F 50%, var(--color-accent) 100%);
  --gradient-warm: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Noise texture overlay — sandy grain */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-accent); }

/* ===== TYPOGRAPHY ===== */
h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  color: var(--color-text);
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}
h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}
p { color: var(--color-text-light); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}
.section--muted { background: var(--color-muted); }
.section--alt { background: var(--color-bg-alt); }
.section--sand {
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section__header {
  text-align: center;
  margin-bottom: calc(var(--space-component) * 1.5);
}
.section__header p {
  max-width: 620px;
  margin: var(--space-element) auto 0;
}
.section__subtitle {
  max-width: 620px;
  margin: var(--space-element) auto 0;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: var(--space-component);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--space-component) * 2);
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-component); }
}

/* Asymmetric layout — Mediterranean flowing rhythm */
.two-col--asymmetric {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: calc(var(--space-component) * 2);
  align-items: center;
}
.two-col--asymmetric-reverse {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: calc(var(--space-component) * 2);
  align-items: center;
}
@media (max-width: 768px) {
  .two-col--asymmetric,
  .two-col--asymmetric-reverse { grid-template-columns: 1fr; gap: var(--space-component); }
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-light { color: var(--color-text-light); }
.mb-1 { margin-bottom: var(--space-element); }
.mb-2 { margin-bottom: var(--space-component); }
.mt-2 { margin-top: var(--space-component); }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-warm);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text--animated {
  background: var(--gradient-terracotta);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-terracotta 6s ease-in-out infinite;
}

@keyframes shimmer-terracotta {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* ===== HAND-DRAWN SVG DIVIDERS ===== */
.villa-line {
  width: 80px;
  height: 2px;
  border: none;
  margin: 1rem 0;
  opacity: 0.6;
  background: none;
  position: relative;
}
.villa-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='2' viewBox='0 0 80 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 C10 0.3, 20 1.8, 30 0.8 S50 1.5, 60 0.6 S75 1.4, 80 1' stroke='%236B7C4E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.villa-line--center {
  width: 80px;
  height: 2px;
  border: none;
  margin: 1rem auto;
  opacity: 0.6;
  background: none;
  position: relative;
}
.villa-line--center::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='2' viewBox='0 0 80 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 C10 0.3, 20 1.8, 30 0.8 S50 1.5, 60 0.6 S75 1.4, 80 1' stroke='%236B7C4E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}
.villa-line--accent::after {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='2' viewBox='0 0 80 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 C10 0.3, 20 1.8, 30 0.8 S50 1.5, 60 0.6 S75 1.4, 80 1' stroke='%23B87348' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Hand-drawn wave divider between sections */
.divider-hand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: var(--space-component) 0;
}
.divider-hand::before,
.divider-hand::after {
  content: '';
  flex: 1;
  height: 3px;
  max-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg width='140' height='3' viewBox='0 0 140 3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1.5 C15 0.3, 25 2.7, 40 1 S65 2.5, 80 1.2 S105 2.8, 120 0.8 S135 2, 140 1.5' stroke='%23D9D1C2' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.divider-hand::before { margin-left: auto; }
.divider-hand::after { margin-right: auto; transform: scaleX(-1); }
.divider-hand span {
  font-family: var(--font-heading);
  color: var(--color-accent);
  font-size: 1.25rem;
  font-style: italic;
  opacity: 0.6;
}

.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-component) 0;
}

/* ===== ARCHED IMAGE FRAME ===== */
.arch-frame {
  border-radius: var(--radius-arch);
  overflow: hidden;
  position: relative;
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.arch-frame:hover img { transform: scale(1.04); }

/* Smaller arched frame for cards */
.arch-frame--sm {
  border-radius: var(--radius-arch);
  overflow: hidden;
}
.arch-frame--sm img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* Image reveal on scroll — mask animation */
.image-reveal {
  position: relative;
  overflow: hidden;
}
.image-reveal::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  transform: scaleX(1);
}
.image-reveal.visible::after {
  transform: scaleX(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  border-radius: var(--radius-sm);
}
.btn:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-bg);
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}
.btn--accent:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
}

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn--lg {
  padding: 1.125rem 2.75rem;
  font-size: var(--fs-body);
}

.btn--sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
}

/* ===== NAV ===== */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav-bar.scrolled {
  background: rgba(250, 245, 237, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  transition: padding 0.4s ease;
}
.nav-bar.scrolled .nav {
  padding: 0.875rem 0;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav__logo:hover { color: var(--color-accent); }

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.nav__links a:hover { color: var(--color-accent); }
.nav__links a:hover::after { width: 100%; }

.nav__cta {
  margin-left: 1rem;
}

@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-ink);
  transition: all 0.3s ease;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
}

/* Mobile menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 999;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__mobile-menu.active {
  transform: translateY(0);
}
.nav__mobile-menu a {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.nav__mobile-menu a:hover { color: var(--color-accent); }

/* ===== HERO — Split layout with arched image ===== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: calc(var(--space-component) * 2);
  padding: 0 var(--container-padding);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.hero__content {
  padding: calc(var(--space-section) * 2) 0 var(--space-section);
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 480px;
  margin-bottom: var(--space-component);
  line-height: var(--lh-body);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
  padding: calc(var(--space-section) * 1.5) 0 var(--space-section);
}

.hero__arch {
  border-radius: var(--radius-arch);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-elevated);
}
.hero__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 6rem;
    gap: var(--space-component);
  }
  .hero__content {
    padding: var(--space-section) 0 0;
    text-align: center;
  }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__image { padding: 0 0 var(--space-component); }
  .hero__arch { aspect-ratio: 4 / 5; max-width: 340px; margin: 0 auto; }
  .hero__title { font-size: clamp(2.25rem, 8vw, 3.5rem); }
}

/* ===== CARDS ===== */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-component);
  transition: all 0.4s ease;
  border-radius: var(--radius-md);
}
.card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card h3 { margin-bottom: 0.75rem; }
.card p { font-size: var(--fs-small); }

.card--villa {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  padding: var(--space-component);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.card--villa::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-warm);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.card--villa:hover::before {
  transform: scaleX(1);
}
.card--villa:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* ===== ICON BOX ===== */
.icon-box {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  color: var(--color-accent);
  background: var(--color-muted);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.card:hover .icon-box,
.card--villa:hover .icon-box {
  background: var(--color-primary);
  color: var(--color-bg);
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
}
.badge--accent {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

/* ===== PORTFOLIO CARD — Arched image ===== */
.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 50% 50% var(--radius-md) var(--radius-md);
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.portfolio-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
  filter: saturate(0.85);
}
.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.06);
  filter: saturate(1);
}
.portfolio-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(44, 42, 30, 0.85));
  transform: translateY(100%);
  transition: transform 0.5s ease;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.portfolio-card:hover .portfolio-card__overlay {
  transform: translateY(0);
}
.portfolio-card__category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.portfolio-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #FFFFFF;
  margin-top: 0.25rem;
}

/* ===== TEAM CARD ===== */
.team-card { text-align: center; }
.team-card__image {
  width: 160px;
  height: 200px;
  border-radius: var(--radius-arch);
  object-fit: cover;
  margin: 0 auto 1.25rem;
  filter: saturate(0.8);
  border: 2px solid var(--color-border);
  transition: all 0.5s ease;
}
.team-card:hover .team-card__image {
  filter: saturate(1);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-hover);
}
.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* ===== TESTIMONIAL CARD ===== */
.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--space-component);
  border-radius: var(--radius-md);
  position: relative;
  transition: all 0.4s ease;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.25;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}
.testimonial-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-style: italic;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}
.testimonial-card__author {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}
.testimonial-card__role {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

/* ===== BLOG CARD ===== */
.blog-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.4s ease;
}
.blog-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.blog-card__image-wrap {
  border-radius: var(--radius-arch);
  overflow: hidden;
  margin: 0.75rem 0.75rem 0;
}
.blog-card__image {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card__image {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 1.5rem;
}
.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}
.blog-card:hover .blog-card__title { color: var(--color-accent); }
.blog-card__excerpt {
  font-size: var(--fs-small);
  color: var(--color-text-light);
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-text);
  text-align: left;
  transition: color 0.3s ease;
}
.faq-item__question:hover { color: var(--color-accent); }
.faq-item__icon {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-item__answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}
.faq-item__answer p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text-light);
}

/* ===== PRICING CARD ===== */
.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-component);
  text-align: center;
  transition: all 0.4s ease;
}
.pricing-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.pricing-card--featured {
  border-color: var(--color-accent);
  position: relative;
  box-shadow: var(--shadow-card);
}
.pricing-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-warm);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}
.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
}
.pricing-card__features li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
  font-size: var(--fs-small);
  border-bottom: 1px solid var(--color-border);
}
.pricing-card__features li:last-child { border-bottom: none; }

/* ===== PROCESS STEP ===== */
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: var(--space-component);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.4s ease;
}
.process-step:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}
.process-step__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
}
.process-step__content h3 { margin-bottom: 0.5rem; }
.process-step__content p { font-size: var(--fs-small); }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: calc(var(--space-section) * 1.5) 0;
  text-align: center;
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(184, 115, 72, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.cta-section__subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto var(--space-component);
  position: relative;
  z-index: 1;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-element);
}
.form__group { display: flex; flex-direction: column; gap: 0.5rem; }
.form__label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
}
.form__input,
.form__textarea {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  padding: 0.875rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.3s ease;
  border-radius: var(--radius-sm);
  outline: none;
}
.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
}
.form__textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== CONTACT BOX ===== */
.contact-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}
.contact-box:hover {
  border-color: var(--color-accent);
  background: var(--color-secondary);
}
.contact-box__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  background: var(--color-muted);
  border-radius: var(--radius-sm);
}
.contact-box__text h4 {
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.contact-box__text p { font-size: var(--fs-small); }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder {
  width: 100%;
  height: 400px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}
/* Terracotta tile pattern for map */
.map-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23B87348' fill-opacity='1'%3E%3Cpath d='M20 0C8.95 0 0 8.95 0 20h1C1 9.5 9.5 1 20 1v-1zm0 40c11.05 0 20-8.95 20-20h-1c0 10.5-8.5 19-19 19v1z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ===== STAT ===== */
.stat { text-align: center; padding: var(--space-component) 0; }
.stat__value {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== ABOUT IMAGE ===== */
.about-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-arch);
  transition: all 0.6s ease;
  box-shadow: var(--shadow-card);
}
.about-image:hover {
  box-shadow: var(--shadow-hover);
}

/* ===== QUOTE ELEGANT ===== */
.quote-elegant {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.5;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-component) 0;
  position: relative;
}
.quote-elegant::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 1.5rem;
  background: none;
  position: relative;
}
.quote-elegant::before {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='2' viewBox='0 0 40 2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 1 C5 0.3, 10 1.7, 15 0.8 S25 1.5, 30 0.6 S37 1.3, 40 1' stroke='%23B87348' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* ===== IMAGE FRAME ===== */
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.image-frame:hover img { transform: scale(1.03); }

/* ===== OLIVE LEAF DECORATIVE ===== */
.olive-leaf {
  display: inline-block;
  color: var(--color-primary);
  opacity: 0.4;
  font-size: 1.25rem;
  animation: leaf-drift 5s ease-in-out infinite;
}
@keyframes leaf-drift {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(3deg) translateY(-2px); }
  75% { transform: rotate(-2deg) translateY(2px); }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-ink);
  color: var(--color-bg);
  padding: calc(var(--space-section) * 0.75) 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-warm);
}
.footer h3 {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--color-bg);
  margin-bottom: 1rem;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.footer p,
.footer a {
  color: rgba(250, 245, 237, 0.6);
  font-size: var(--fs-small);
  transition: color 0.3s ease;
}
.footer a:hover { color: var(--color-accent); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.625rem; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-component);
}
@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; }
}

.footer__brand-desc {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(250, 245, 237, 0.15);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}
.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer__bottom {
  margin-top: calc(var(--space-section) * 0.5);
  padding: 1.5rem 0;
  border-top: 1px solid rgba(250, 245, 237, 0.1);
  text-align: center;
}
.footer__bottom p {
  font-size: var(--fs-small);
  color: rgba(250, 245, 237, 0.35);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== ANIMATIONS ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes warm-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root {
    --space-section: 5.5rem;
    --space-component: 2.25rem;
  }
}
@media (max-width: 768px) {
  :root {
    --space-section: 4rem;
    --space-component: 2rem;
    --container-padding: 1.25rem;
  }
  .two-col { gap: var(--space-component); }
}

/* Auto-generated color variant: yellow */
:root {
  --color-primary: #CA8A04;
  --color-secondary: #FEF9C3;
  --color-accent: #EAB308;
  --color-text: #1E293B;
  --color-text-light: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FEFCE8;
  --color-border: #E2E8F0;
  --color-muted: #FEFCE8;
}

/* SitePilot: skip link */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sr-only:focus{position:static;width:auto;height:auto;padding:8px 16px;margin:0;overflow:visible;clip:auto;white-space:normal;background:#fff;color:#000;z-index:10000}
/* SitePilot: mobile nav toggle */
nav.nav{position:relative;z-index:1000}
.nav-toggle{display:none;background:none;border:none;cursor:pointer;padding:8px;color:inherit}
.nav__links{list-style:none;padding:0;margin:0}
.nav__links li{display:inline}
@media(max-width:768px){
  .nav-toggle{display:block}
  .nav__cta{display:none}
  .nav__links{flex-direction:column;position:absolute;top:100%;left:0;right:0;z-index:999;background:rgba(255,255,255,0.98);backdrop-filter:blur(10px);padding:16px 24px;box-shadow:0 4px 12px rgba(0,0,0,0.1);gap:12px}
  .nav__links li{display:block}
  .nav__links a{color:#1f2937!important}
}
/* SitePilot: language flags */
.sp-lang-flags{display:flex;align-items:center;gap:4px;margin-left:auto}
.sp-lang-flags button{background:none;border:none;cursor:pointer;font-size:20px;opacity:0.35;transition:opacity 0.15s;padding:2px;line-height:1}
.sp-lang-flags button.active{opacity:1}
/* SitePilot: nav brand spacing */
.nav__brand,.nav__logo{margin-right:32px;flex-shrink:0;white-space:nowrap}
/* SitePilot: CF7 form styling */
.wpcf7 .wpcf7-form p{margin-bottom:16px}
.wpcf7 .wpcf7-form label{display:block;font-weight:500;margin-bottom:4px;font-size:0.95rem}
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit){width:100%;padding:12px 16px;border:1px solid rgba(255,255,255,0.15);border-radius:8px;background:rgba(255,255,255,0.06);color:inherit;font-size:1rem;transition:border-color 0.2s,box-shadow 0.2s;box-sizing:border-box}
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):focus{outline:none;border-color:var(--color-primary,#3b82f6);box-shadow:0 0 0 3px rgba(59,130,246,0.15)}
.wpcf7 textarea.wpcf7-form-control{min-height:140px;resize:vertical}
.wpcf7 .wpcf7-submit{display:inline-block;padding:12px 32px;background:var(--color-primary,#3b82f6);color:#fff;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:background 0.2s,transform 0.1s}
.wpcf7 .wpcf7-submit:hover{background:var(--color-primary-dark,#2563eb);transform:translateY(-1px)}
.wpcf7 .wpcf7-submit:active{transform:translateY(0)}
.wpcf7 .wpcf7-spinner{display:inline-block;margin-left:8px}
.wpcf7 .wpcf7-response-output{margin:16px 0;padding:12px 16px;border-radius:8px;font-size:0.9rem}
/* SitePilot: Google Maps embed */
.contact-map iframe{width:100%;height:350px;border:none;border-radius:12px;margin-top:8px}
.contact-map{margin-bottom:24px}
/* SitePilot: prevent mobile horizontal overflow — html element (body already covered; html needed for documentElement.scrollWidth) */
html{overflow-x:hidden}

/* SP-BLOG-FIX-v1 */
.sp-archive,.sp-single{min-height:50vh}
.sp-archive__head{margin-bottom:var(--space-xl,3rem);text-align:center}
.sp-archive__title,.sp-single__title{font-family:var(--font-heading);color:var(--color-text);font-size:clamp(1.75rem,4vw,2.75rem);line-height:1.2;margin:0}
.sp-archive__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:var(--space-lg,2rem)}
.sp-archive__card{background:var(--color-bg-card,var(--color-bg-alt,rgba(0,0,0,0.03)));border:1px solid var(--color-border,rgba(0,0,0,0.1));border-radius:var(--radius-md,8px);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.sp-archive__card:hover{transform:translateY(-4px);box-shadow:0 8px 24px rgba(0,0,0,0.08)}
.sp-archive__thumb{display:block;aspect-ratio:16/9;overflow:hidden}
.sp-archive__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.sp-archive__body{padding:var(--space-md,1.5rem);display:flex;flex-direction:column;gap:.5rem;flex:1}
.sp-archive__meta,.sp-single__meta{font-size:.75rem;color:var(--color-text-muted,var(--color-text-light,var(--color-text-secondary,#888)));text-transform:uppercase;letter-spacing:.08em}
.sp-archive__heading{font-family:var(--font-heading);font-size:1.25rem;line-height:1.3;margin:0;color:var(--color-text)}
.sp-archive__heading a{color:inherit;text-decoration:none}
.sp-archive__heading a:hover{color:var(--color-accent)}
.sp-archive__excerpt{font-family:var(--font-body);color:var(--color-text-secondary,var(--color-text-light,var(--color-text)));font-size:1rem;line-height:1.6}
.sp-archive__excerpt p{margin:0}
.sp-archive__more{margin-top:auto;font-size:.875rem;font-weight:600;color:var(--color-accent);text-decoration:none;letter-spacing:.05em}
.sp-archive__pagination{margin-top:var(--space-xl,3rem);display:flex;justify-content:center}
.sp-archive__pagination .nav-links{display:flex;gap:.5rem;flex-wrap:wrap;justify-content:center}
.sp-archive__pagination .page-numbers{padding:.5rem .9rem;border:1px solid var(--color-border,rgba(0,0,0,0.1));border-radius:var(--radius-sm,4px);color:var(--color-text);text-decoration:none}
.sp-archive__pagination .page-numbers.current{background:var(--color-accent);color:var(--color-bg,#fff);border-color:var(--color-accent)}
.sp-archive__empty{text-align:center;color:var(--color-text-muted,var(--color-text));font-size:1.125rem;padding:var(--space-xl,3rem) 0}
.sp-single__head{margin-bottom:var(--space-lg,2rem);text-align:center}
.sp-single__thumb{margin-bottom:var(--space-lg,2rem);border-radius:var(--radius-md,8px);overflow:hidden}
.sp-single__thumb img{width:100%;height:auto;display:block}
.sp-single__content{font-family:var(--font-body);color:var(--color-text);font-size:1.0625rem;line-height:1.75}
.sp-single__content h2{font-family:var(--font-heading);font-size:1.75rem;margin:2rem 0 1rem}
.sp-single__content h3{font-family:var(--font-heading);font-size:1.375rem;margin:1.75rem 0 .75rem}
.sp-single__content p{margin:0 0 1rem}
.sp-single__content a{color:var(--color-accent)}
.sp-single__content img{max-width:100%;height:auto;border-radius:var(--radius-sm,4px)}
