/* ============================================
   Sai Creation — Shared Styles
   Palette: Maroon / Aged Gold / Warm Beige
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Lora:wght@400;500;600&display=swap");

:root {
  --maroon-deep: #5a1220;
  --maroon: #7c1e33;
  --maroon-bright: #9b2942;
  --gold: #c6a15b;
  --gold-light: #e4cc93;
  --gold-dim: #a9843f;
  --brown-dark: #2b1a12;
  --beige: #f1e6d2;
  --cream: #fbf5e8;
  --ink: #2b1a12;

  --border-svg: url("assets/kolka-border.svg");

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--maroon-deep);
  margin: 0 0 0.4em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--gold-dim);
  display: inline-block;
  margin-bottom: 0.9rem;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 1.15rem;
  color: #4a3527;
  max-width: 60ch;
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--maroon-deep);
  color: var(--cream);
  border-bottom: 3px solid var(--gold);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}
.brand span {
  display: block;
  font-size: 0.62rem;
  font-family: var(--font-body);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--beige);
  font-weight: 500;
  margin-top: 2px;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cream);
  position: relative;
  padding-bottom: 3px;
}
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--gold-light);
}
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--gold);
}

.nav-contact {
  font-size: 0.9rem;
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 7px 16px;
  border-radius: 2px;
  white-space: nowrap;
}
.nav-contact:hover {
  background: var(--gold);
  color: var(--maroon-deep);
}

/* ---------- Kolka border divider ---------- */
.kolka-divider {
  height: 26px;
  width: 100%;
  display: block;
  background: var(--maroon-deep);
  color: var(--gold-light);
  overflow: hidden;
}
.kolka-divider.on-beige {
  background: var(--beige);
  color: var(--gold-dim);
}
.kolka-divider.on-cream {
  background: var(--cream);
  color: var(--gold-dim);
}
.kolka-divider svg {
  display: block;
  width: 100%;
  height: 100%;
  padding-top: 4px;
}
.kolka-divider .kolka-mobile {
  display: none;
}
.kolka-divider svg * {
  vector-effect: non-scaling-stroke;
}

@media (max-width: 640px) {
  .kolka-divider .kolka-desktop {
    display: none;
  }
  .kolka-divider .kolka-mobile {
    display: block;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(
    180deg,
    var(--maroon-deep),
    var(--maroon) 70%,
    var(--maroon-bright)
  );
  color: var(--cream);
  padding: 78px 0 64px;
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--gold-light);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem);
  font-style: italic;
  font-weight: 700;
}
.hero .lede {
  color: var(--beige);
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: all 0.18s ease;
}
.btn-solid {
  background: var(--gold);
  color: var(--maroon-deep);
  font-weight: 600;
}
.btn-solid:hover {
  background: var(--gold-light);
}
.btn-outline {
  color: var(--gold-light);
}
.btn-outline:hover {
  background: rgba(230, 200, 130, 0.12);
}

/* ---------- Placeholder photo blocks ---------- */
.photo-slot {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(198, 161, 91, 0.14) 0 2px,
      transparent 2px 16px
    ),
    linear-gradient(160deg, #efe1c4, #e2cf9f);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dim);
  text-align: center;
  min-height: 220px;
  border-radius: 2px;
}
.photo-slot .label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  padding: 10px 16px;
  background: rgba(251, 245, 232, 0.85);
  border: 1px solid var(--gold);
}
.hero .photo-slot {
  min-height: 320px;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(230, 200, 130, 0.18) 0 2px,
      transparent 2px 16px
    ),
    linear-gradient(160deg, #6b1c30, #4a0f1e);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.hero .photo-slot .label {
  background: rgba(90, 18, 32, 0.6);
  border-color: var(--gold-light);
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}
.section-beige {
  background: var(--beige);
}
.section-cream {
  background: var(--cream);
}
.section-maroon {
  background: var(--maroon-deep);
  color: var(--cream);
}
.section-maroon h2 {
  color: var(--gold-light);
}

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Category / grid cards ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.category-card h3 {
  font-size: 1.35rem;
  margin: 16px 0 6px;
}
.category-card p {
  font-size: 0.95rem;
  color: #5b432f;
  margin: 0;
}

/* ---------- Highlights strip ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.highlights div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.highlights .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--gold-light);
  display: block;
  margin-bottom: 6px;
}
.highlights .cap {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--beige);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-grid .g-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
  background: var(--maroon-deep);
}
.gallery-grid .g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-grid .g-item:hover img {
  transform: scale(1.05);
}

/* ---------- Craft teaser ---------- */
.craft-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.craft-strip .cs-item {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--gold-dim);
}
.craft-strip .cs-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.craft-teaser {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}
.craft-teaser .arrow-link {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--maroon);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 2px;
}
.craft-teaser .arrow-link:hover {
  color: var(--maroon-bright);
}

/* ---------- Process steps (About page) ---------- */
.process-steps {
  display: grid;
  gap: 40px;
}
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: start;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--gold);
  border-right: 1px solid var(--gold-dim);
  padding-right: 20px;
}
.process-step h3 {
  margin-bottom: 8px;
}
.process-step p {
  color: #4a3527;
  max-width: 58ch;
}

/* ---------- Technique cards ---------- */
.technique-card {
  border: 1px solid var(--gold-dim);
  background: var(--cream);
}
.technique-card .photo-slot {
  min-height: 190px;
  border-radius: 0;
  border-width: 0 0 1px 0;
}
.technique-card .tc-body {
  padding: 20px 22px 26px;
}
.technique-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.technique-card p {
  font-size: 0.95rem;
  color: #5b432f;
  margin: 0;
}

/* ---------- Story block ---------- */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story .lede {
  max-width: none;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
}
.contact-card {
  background: var(--cream);
  border: 1px solid var(--gold-dim);
  padding: 34px 34px 30px;
}
.contact-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e6d6b3;
}
.contact-row:last-child {
  border-bottom: none;
}
.contact-row .ic {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-dim);
  min-width: 90px;
}
.contact-row .val {
  font-size: 1.02rem;
}
.contact-row .placeholder {
  color: #9c8264;
  font-style: italic;
}

.map-slot {
  min-height: 100%;
}

.contact-cta {
  display: flex;
  gap: 16px;
  margin-top: 26px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  background: var(--brown-dark);
  color: var(--beige);
  padding: 46px 0 30px;
}
footer .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}
footer h4 {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 14px;
}
footer .brand {
  color: var(--gold-light);
  font-size: 1.5rem;
  margin-bottom: 10px;
}
footer p {
  font-size: 0.92rem;
  color: #d8c6a8;
  margin-bottom: 6px;
}
footer a:hover {
  color: var(--gold-light);
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #46301f;
  font-size: 0.82rem;
  color: #b39c7c;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .hero .photo-slot {
    order: -1;
    min-height: 220px;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .craft-teaser,
  .craft-strip {
    grid-template-columns: 2fr;
  }
  .story {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  footer .wrap {
    grid-template-columns: 1fr;
  }
  nav.main-nav {
    gap: 18px;
  }
  .process-step {
    grid-template-columns: 60px 1fr;
  }
  .process-step .step-num {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: center;
  }
  .site-header .wrap .brand {
    text-align: center;
  }
  nav.main-nav {
    flex-wrap: wrap;
  }
  .contact-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Keyboard focus visibility */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}
