/* =========================================================
   Derin Pasta Kafe — Ana Stil Dosyası
   Renk paleti ve tipografi marka kimliğine göre tanımlıdır.
   ========================================================= */

:root {
  --cream: #fff8f0;
  --beige: #f2e4d5;
  --brown: #5c3828;
  --brown-dark: #2e211b;
  --powder: #dfa7a7;
  --accent: #b76e79;
  --white: #ffffff;
  --text: #2e211b;
  --text-soft: #5c3828;
  --text-muted: #7a5a4a;
  --shadow: 0 12px 40px rgba(46, 33, 27, 0.1);
  --shadow-soft: 0 6px 20px rgba(46, 33, 27, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 96px;
  --container: 1160px;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --transition: 0.28s ease;
  --focus: 0 0 0 3px rgba(183, 110, 121, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero.is-ready .hero__eyebrow,
  .hero.is-ready .hero__title,
  .hero.is-ready .hero__text,
  .hero.is-ready .hero__actions {
    opacity: 1;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(223, 167, 167, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(242, 228, 213, 0.7), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #fffaf5 40%, var(--beige) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img.img-broken {
  background: var(--beige);
  min-height: 180px;
  object-fit: cover;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--brown-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown-dark);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-soft);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  margin-bottom: 0.85rem;
}

.section__lead {
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 40rem;
}

.section__head--center {
  text-align: center;
  margin-inline: auto;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--brown-dark);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition),
    transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(183, 110, 121, 0.28);
}

.btn--primary:hover {
  background: #a45f69;
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--dark {
  background: var(--brown-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--brown);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--brown-dark);
  border-color: var(--brown);
}

.btn--outline:hover {
  background: var(--brown-dark);
  color: var(--white);
}

.btn--ghost {
  background: var(--white);
  color: var(--brown-dark);
  border-color: var(--beige);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 248, 240, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  --header-h: 84px;
  background: rgba(255, 248, 240, 0.94);
  border-bottom-color: rgba(92, 56, 40, 0.08);
  box-shadow: 0 8px 30px rgba(46, 33, 27, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brown-dark);
  min-width: 0;
}

.brand:hover {
  color: var(--brown-dark);
}

.brand-logo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(46, 33, 27, 0.12);
}

.brand-logo.is-hidden {
  display: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-list a {
  display: inline-flex;
  padding: 0.55rem 0.85rem;
  color: var(--brown);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--brown-dark);
  background: rgba(223, 167, 167, 0.28);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

.header__cta {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(46, 33, 27, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
    z-index: 90;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 340px);
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(105%);
    transition: transform var(--transition);
    z-index: 95;
    box-shadow: -12px 0 40px rgba(46, 33, 27, 0.15);
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-list a {
    padding: 0.95rem 1rem;
    font-size: 1.05rem;
  }

  .site-nav .header__cta,
  .site-nav .btn {
    display: inline-flex;
    width: 100%;
    margin-top: 1.25rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 820px);
  min-height: min(100dvh, 820px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  color: var(--white);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(46, 33, 27, 0.78) 0%, rgba(46, 33, 27, 0.45) 48%, rgba(92, 56, 40, 0.28) 100%),
    linear-gradient(0deg, rgba(46, 33, 27, 0.55) 0%, transparent 55%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--powder);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(18px);
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  color: var(--white);
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(24px);
}

.hero__text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 248, 240, 0.92);
  max-width: 34rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(20px);
}

.hero__actions {
  opacity: 0;
  transform: translateY(16px);
}

.hero.is-ready .hero__eyebrow,
.hero.is-ready .hero__title,
.hero.is-ready .hero__text,
.hero.is-ready .hero__actions {
  animation: riseIn 0.7s ease forwards;
}

.hero.is-ready .hero__title {
  animation-delay: 0.12s;
}

.hero.is-ready .hero__text {
  animation-delay: 0.24s;
}

.hero.is-ready .hero__actions {
  animation-delay: 0.36s;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* İç sayfa hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 3rem;
  background:
    linear-gradient(135deg, rgba(223, 167, 167, 0.35), rgba(242, 228, 213, 0.5)),
    var(--beige);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, rgba(183, 110, 121, 0.22), transparent 70%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.page-hero p {
  max-width: 36rem;
  font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--beige);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card__media img {
  transform: scale(1.04);
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
}

.card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.card__body p {
  font-size: 0.95rem;
  flex: 1;
}

.card__meta {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__link {
  margin-top: 0.75rem;
  font-weight: 500;
  color: var(--brown);
  text-decoration: none;
  align-self: flex-start;
}

.card__link:hover {
  color: var(--accent);
}

.card__price {
  /* Fiyat alanı — ileride doldurulabilir */
  display: none;
  font-weight: 600;
  color: var(--brown-dark);
  margin-top: 0.35rem;
}

.card__price[data-price]:not([data-price=""]) {
  display: block;
}

.feature-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(92, 56, 40, 0.08);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(223, 167, 167, 0.35);
  color: var(--brown-dark);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Split / special ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.split__media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--beige);
  aspect-ratio: 4 / 5;
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.check-list {
  margin: 1.25rem 0 1.75rem;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-soft);
}

.check-list svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}

.gallery__item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--beige);
  box-shadow: var(--shadow-soft);
  min-height: 180px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
}

.gallery__item:nth-child(1) {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 380px;
}

.gallery__item:nth-child(2) {
  grid-column: span 4;
  min-height: 185px;
}

.gallery__item:nth-child(3) {
  grid-column: span 3;
  min-height: 185px;
}

.gallery__item:nth-child(4) {
  grid-column: span 3;
  min-height: 185px;
}

.gallery__item:nth-child(5) {
  grid-column: span 4;
  min-height: 185px;
}

.gallery__item:nth-child(6) {
  grid-column: span 5;
  min-height: 185px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
    linear-gradient(135deg, var(--brown-dark), #4a2d22 45%, var(--accent));
  color: var(--white);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.cta-band p {
  color: rgba(255, 248, 240, 0.9);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.cta-band--flush {
  border-radius: 0;
}

.cta-band--powder {
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(135deg, #e8b4b4, var(--powder) 40%, #c98b93);
  color: var(--brown-dark);
}

.cta-band--powder h2 {
  color: var(--brown-dark);
}

.cta-band--powder p {
  color: var(--brown);
}

/* ---------- Contact strip ---------- */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.contact-strip__item {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.contact-strip__item h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.contact-strip__item p,
.contact-strip__item a {
  margin: 0;
  color: var(--brown-dark);
  text-decoration: none;
  font-weight: 500;
}

.map-placeholder {
  background: var(--beige);
  border: 1px dashed rgba(92, 56, 40, 0.25);
  border-radius: var(--radius);
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.map-placeholder p {
  max-width: 28rem;
  margin: 0;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--beige);
  min-height: 280px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 360px;
}

/* ---------- Products filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
}

.filter-btn {
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(92, 56, 40, 0.15);
  background: var(--white);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover,
.filter-btn.is-active {
  background: var(--brown-dark);
  color: var(--white);
  border-color: var(--brown-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.product-card .card__media {
  aspect-ratio: 1;
}

.product-note {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(223, 167, 167, 0.2);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.product-note p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

/* ---------- About ---------- */
.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.about-block {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.about-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--beige);
  aspect-ratio: 16 / 11;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-soft);
}

.info-card h2,
.info-card h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.info-card p,
.info-card a {
  margin: 0;
  color: var(--brown-dark);
  font-weight: 500;
  text-decoration: none;
}

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.contact-form-wrap > p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown-dark);
  margin-bottom: 0.4rem;
}

.form-field .req {
  color: var(--accent);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid rgba(92, 56, 40, 0.18);
  border-radius: 12px;
  background: var(--cream);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: var(--focus);
  background: var(--white);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.field-error {
  display: block;
  min-height: 1.1em;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #9b3b3b;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.92rem;
}

.form-status.is-error {
  color: #9b3b3b;
}

.form-status.is-info {
  color: var(--brown);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-dark);
  color: rgba(255, 248, 240, 0.85);
  padding: 4rem 0 0;
  margin-top: 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.site-footer p {
  color: rgba(255, 248, 240, 0.72);
  font-size: 0.95rem;
}

.site-footer h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--powder);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 248, 240, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--powder);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.6);
}

.footer__bottom a {
  color: rgba(255, 248, 240, 0.75);
  text-decoration: none;
}

.footer__bottom a:hover {
  color: var(--powder);
}

/* ---------- Floating actions ---------- */
.float-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(46, 33, 27, 0.22);
  transition: transform var(--transition), box-shadow var(--transition);
  color: var(--white);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  color: var(--white);
}

.float-btn--wa {
  background: #25d366;
}

.float-btn--tel {
  background: var(--brown);
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 8.5rem;
  z-index: 80;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--brown-dark);
  color: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: var(--shadow-soft);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(46, 33, 27, 0.88);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img {
  max-width: min(100%, 1100px);
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* ---------- Utilities ---------- */
.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;
}

.main-content {
  min-height: 50vh;
}

.text-muted {
  color: var(--text-muted);
}

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

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item:nth-child(n) {
    grid-column: span 6;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 768px) {
  .split,
  .grid-2,
  .contact-layout,
  .product-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .split__media {
    aspect-ratio: 4 / 3;
  }

  .hero {
    min-height: 92vh;
    align-items: center;
    padding-bottom: 3rem;
  }

  .contact-strip,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .gallery__item:nth-child(n) {
    grid-column: span 12;
    min-height: 220px;
  }

  .float-actions {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .float-btn {
    width: 52px;
    height: 52px;
  }

  .back-to-top {
    right: 0.75rem;
    bottom: 7.8rem;
  }
}

@media (max-width: 375px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .btn {
    width: 100%;
  }

  .hero__actions.btn-group {
    width: 100%;
  }

  .cta-band .btn-group {
    justify-content: center;
  }

  .cta-band .btn {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1240px;
  }
}
