/* Becalor — Crafted Shoe Atelier */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ivory: #f7f3ec;
  --canvas: #ede6db;
  --cream: #f3ebdf;
  --cognac: #8b5e3c;
  --leather: #a67c52;
  --stone: #c4b8a8;
  --taupe: #9a8f82;
  --espresso: #2c2118;
  --olive: #4a5240;
  --brass: #a68b5b;
  --white: #fffcf7;
  --text: #3a3128;
  --muted: #6b5f52;
  --border: rgba(44, 33, 24, 0.12);
  --shadow: 0 18px 50px rgba(44, 33, 24, 0.08);
  --radius: 2px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(166, 139, 91, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(139, 94, 60, 0.08), transparent 45%),
    linear-gradient(180deg, var(--ivory) 0%, var(--cream) 45%, var(--canvas) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  padding-top: var(--header-h);
}

body.nav-open {
  overflow: hidden;
}

html.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

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

a {
  color: var(--cognac);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease);
}

a:hover,
a:focus-visible {
  color: var(--espresso);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--espresso);
  margin: 0 0 0.75rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

p,
li,
label,
button,
input,
textarea,
.nav-link,
.footer,
.card,
.modal,
.btn {
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.85rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 243, 236, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 243, 236, 0.96);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(44, 33, 24, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  z-index: 1100;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--espresso);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1px;
  background: var(--cognac);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--espresso);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(44, 33, 24, 0.78) 0%, rgba(44, 33, 24, 0.42) 48%, rgba(44, 33, 24, 0.2) 100%),
    linear-gradient(0deg, rgba(44, 33, 24, 0.55) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem);
  max-width: 40rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 252, 247, 0.88);
  font-size: 1.08rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2.5rem;
}

.page-hero .lede {
  max-width: 40rem;
  font-size: 1.12rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid transparent;
  background: var(--espresso);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(1px);
  background: var(--olive);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  background: var(--taupe);
  color: var(--ivory);
}

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

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

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

.btn-outline:hover {
  background: var(--espresso);
  color: var(--ivory);
}

.btn-success {
  background: var(--olive);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: rgba(255, 252, 247, 0.55);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head.centered {
  margin-inline: auto;
  text-align: center;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.split-media {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: var(--canvas);
  box-shadow: var(--shadow);
}

.split-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split:hover .split-media img {
  transform: scale(1.03);
}

.media-frame {
  overflow: hidden;
  background: var(--canvas);
  box-shadow: var(--shadow);
}

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

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

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

.service-card,
.feature-card,
.care-card,
.why-card {
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

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

.service-card img,
.feature-card img,
.care-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.55rem;
}

.meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.meta-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.4rem;
  height: 1px;
  background: var(--brass);
}

/* Before / After */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ba-item {
  position: relative;
  overflow: hidden;
  background: var(--espresso);
}

.ba-item img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  opacity: 0.95;
}

.ba-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  background: rgba(247, 243, 236, 0.92);
  color: var(--espresso);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.why-card {
  padding: 1.5rem 1.25rem;
}

.why-card .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--espresso);
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  color: rgba(255, 252, 247, 0.82);
}

.cta-band-media {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.contact-panel {
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.contact-list li {
  margin-bottom: 1rem;
}

.contact-list .label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-list .value {
  color: var(--espresso);
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--espresso);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.1rem;
}

.social-links a:hover {
  color: var(--cognac);
}

.form-card {
  background: rgba(255, 252, 247, 0.88);
  border: 1px solid var(--border);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(166, 139, 91, 0.18);
}

.form-group.is-invalid input,
.form-group.is-invalid textarea {
  border-color: #9a4a3a;
}

.field-error {
  display: none;
  margin-top: 0.4rem;
  color: #9a4a3a;
  font-size: 0.88rem;
}

.form-group.is-invalid .field-error {
  display: block;
}

.form-note {
  font-size: 0.9rem;
  color: var(--taupe);
  margin-top: 0.75rem;
}

/* Legal */
.legal-content {
  max-width: 48rem;
}

.legal-content h2 {
  margin-top: 2.25rem;
}

.legal-content h3 {
  margin-top: 1.5rem;
}

.legal-content ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.legal-content li {
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  background: var(--espresso);
  color: rgba(247, 243, 236, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand-name {
  color: var(--ivory);
}

.site-footer a {
  color: rgba(247, 243, 236, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--brass);
}

.footer-brand p,
.footer-col p {
  color: rgba(247, 243, 236, 0.72);
}

.footer-col h3 {
  color: var(--ivory);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.55rem;
}

.footer-phone {
  color: var(--ivory);
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(247, 243, 236, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(44, 33, 24, 0.55);
  backdrop-filter: blur(4px);
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  width: min(420px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--ivory);
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  box-shadow: var(--shadow);
  animation: modalIn 0.35s var(--ease);
}

.modal h2 {
  padding-right: 2rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--espresso);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--cognac);
  border-color: var(--brass);
  background: var(--cream);
}

.modal-actions {
  margin-top: 1.5rem;
}

.modal-actions .btn {
  width: 100%;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@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;
  }

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

/* Responsive */
@media (max-width: 980px) {
  .grid-3,
  .why-grid,
  .footer-grid,
  .cta-band .container,
  .contact-layout,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .grid-2,
  .ba-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 33, 24, 0.35);
  z-index: 1040;
}

.nav-backdrop.is-visible {
  display: block;
}

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 1.25rem) 1.5rem 2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 243, 236, 0.98);
    border-left: 1px solid var(--border);
    transform: translateX(105%);
    transition: transform 0.35s var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1050;
  }

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

  .site-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
  }

  .site-nav a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .container,
  .header-inner {
    width: calc(100% - 1.5rem);
  }

  .grid-2,
  .ba-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .brand-name {
    font-size: 1.4rem;
  }
}

@media (max-width: 360px) {
  body {
    font-size: 1rem;
  }

  .hero-content {
    padding-top: 3.5rem;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .hero {
    min-height: auto;
  }

  .site-nav {
    padding-top: 4.5rem;
  }
}

.hero-compact {
  min-height: min(62vh, 560px);
}

.why-grid-2 {
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5rem;
}

.cta-band .eyebrow {
  color: var(--brass);
}

.cta-panel {
  background: rgba(255, 252, 247, 0.08);
  border: 1px solid rgba(255, 252, 247, 0.16);
  padding: 1.75rem;
}

.cta-panel .label {
  display: block;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cta-panel p {
  color: rgba(255, 252, 247, 0.9);
  margin-bottom: 0.5rem;
}

.cta-panel a {
  color: var(--brass);
}

.visit-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.care-card-pad {
  padding-top: 1.75rem;
}

.section-flush-top {
  padding-top: 0;
}

.contact-aside-label {
  margin-bottom: 0.5rem;
}

.social-note {
  margin-top: 1.5rem;
}

.services-cta {
  margin-top: 2.5rem;
  text-align: center;
}

@media (max-width: 980px) {
  .why-grid-2 {
    grid-template-columns: 1fr;
  }
}
