/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { display: block; max-width: 100%; }

/* === VARIABLES === */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;

  --primary: #C8973A;
  --primary-dark: #A87828;
  --primary-light: #F5E6C8;
  --accent: #3D6B4F;
  --accent-light: #E8F2EC;
  --bg: #FAF7F2;
  --bg-alt: #F2EDE4;
  --surface: #FFFFFF;
  --surface-2: #F7F3EE;
  --ink: #1E1A14;
  --ink-mute: #6B6155;
  --ink-light: #9C9080;
  --border: #E5DDD0;
  --shadow-sm: 0 2px 8px rgba(30,26,20,.07);
  --shadow-md: 0 4px 24px rgba(30,26,20,.10);
  --shadow-lg: 0 8px 48px rgba(30,26,20,.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-8);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: rgba(255,255,255,.15);
  color: #fff;
  border-color: rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.25);
  border-color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--full { width: 100%; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250,247,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--s-6);
}
.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }
.logo--light { color: #fff; }
.nav {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mute);
  padding: var(--s-2) var(--s-3);
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--ink); background: var(--surface-2); }
.nav__link--cta {
  background: var(--primary);
  color: #fff;
  padding: var(--s-2) var(--s-4);
  border-radius: 50px;
}
.nav__link--cta:hover { background: var(--primary-dark); color: #fff; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .25s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,26,20,.72) 0%, rgba(30,26,20,.35) 60%, rgba(200,151,58,.15) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
  max-width: 680px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-6);
  line-height: 1.05;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.85);
  margin-bottom: var(--s-8);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* === STATS === */
.stats {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-8) var(--s-6);
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat__number {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.stat__label {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 500;
}

/* === SECTION COMMON === */
.section { padding: var(--s-16) 0; }
.section--alt { background: var(--bg-alt); }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s-12);
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.section-eyebrow--light { color: var(--primary); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.section-desc {
  font-size: 16px;
  color: var(--ink-mute);
  line-height: 1.7;
}

/* === CARDS GRID === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__image-wrap { flex-shrink: 0; }
.card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
}
.card__body {
  flex: 1 1 auto;
  padding: var(--s-6);
}
.card__icon {
  margin-bottom: var(--s-4);
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.card__text {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__footer {
  margin-top: auto;
  padding: 0 var(--s-6) var(--s-6);
}
.card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: color .2s;
}
.card__link:hover { color: var(--primary-dark); }

/* === REVIEW CARDS === */
.card--review {
  background: var(--surface);
  padding: 0;
}
.card--review .card__body { padding: var(--s-6); }
.card--review .card__footer { padding: var(--s-4) var(--s-6) var(--s-6); border-top: 1px solid var(--border); }
.review-stars {
  color: var(--primary);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--s-4);
}
.card--review .card__text {
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
  -webkit-line-clamp: 5;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.review-author__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-author__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.review-author__role {
  font-size: 12px;
  color: var(--ink-mute);
}

/* === PORTFOLIO === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--s-4);
}
.portfolio-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.portfolio-card--large {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}
.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4/3;
  transition: transform .4s ease;
}
.portfolio-card--large .portfolio-card__img {
  aspect-ratio: 16/9;
}
.portfolio-card:hover .portfolio-card__img { transform: scale(1.04); }
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,26,20,.8) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6);
  transition: background .3s;
}
.portfolio-card:hover .portfolio-card__overlay {
  background: linear-gradient(to top, rgba(30,26,20,.9) 0%, rgba(30,26,20,.2) 100%);
}
.portfolio-card__tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: var(--s-1) var(--s-3);
  border-radius: 50px;
  margin-bottom: var(--s-2);
  align-self: flex-start;
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--s-1);
}
.portfolio-card__meta {
  font-size: 13px;
  color: rgba(255,255,255,.75);
}

/* === PRICING === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  align-items: stretch;
  margin-bottom: var(--s-8);
}
.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-md);
}
.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: var(--s-1) var(--s-4);
  border-radius: 50px;
  white-space: nowrap;
}
.pricing-card__header {
  text-align: center;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-6);
}
.pricing-card__name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.pricing-card__price {
  font-size: 16px;
  color: var(--ink-mute);
}
.pricing-card__price strong {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.1;
}
.pricing-card__per {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: var(--s-1);
}
.pricing-card__features {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.pricing-card__features li {
  font-size: 14px;
  color: var(--ink-mute);
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}
.pricing-note {
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-6);
  margin-bottom: var(--s-12);
}

/* === TABLE === */
.table-wrap { overflow-x: auto; }
.table-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-6);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table thead { background: var(--surface-2); }
.data-table th { font-weight: 600; font-size: 14px; color: var(--ink); }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody td { font-size: 14px; color: var(--ink-mute); }
.data-table tbody tr:hover { background: var(--surface-2); }

/* === CTA SECTION === */
.cta-section {
  background: var(--ink);
  padding: var(--s-16) 0;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-16);
  align-items: start;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s-4);
  line-height: 1.2;
}
.cta-desc {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  margin-bottom: var(--s-8);
}
.cta-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cta-features li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  color: rgba(255,255,255,.8);
}
.cta-section .section-eyebrow { color: var(--primary); }

/* === FORM === */
.contact-form {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.form-input {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
.form-textarea {
  resize: vertical;
  min-height: 96px;
}
.form-select { cursor: pointer; }

/* === FOOTER === */
.site-footer {
  background: #141210;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--s-8);
  padding-top: var(--s-12);
  padding-bottom: var(--s-12);
}
.footer-brand .logo {
  font-size: 32px;
  margin-bottom: var(--s-3);
  display: block;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--s-1);
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--primary); }
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-contact-link {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-contact-link:hover { color: var(--primary); }
.footer-address {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--s-4) 0;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat:nth-last-child(-n+2) { border-bottom: none; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card--large { grid-column: 1 / 3; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .cta-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}

@media (max-width: 640px) {
  .nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: var(--s-4); gap: var(--s-2); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav__link { padding: var(--s-3) var(--s-4); border-radius: var(--radius); font-size: 15px; }
  .nav__link--cta { text-align: center; }
  .burger { display: flex; }
  .hero__content { padding-top: calc(var(--s-16) + 40px); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card--large { grid-column: 1; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .section { padding: var(--s-12) 0; }

  /* Table responsive */
  .data-table thead { position: absolute; left: -9999px; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    gap: 12px;
    font-size: 14px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-mute);
    flex: 0 0 auto;
  }
}