/* Maitri Tea & Table — inspired by clean, editorial coffee shop layouts */

:root {
  --sage: #8fa88a;
  --sage-deep: #5f7360;
  --sage-dark: #3d4f3f;
  --terracotta: #a65e2e;
  --terracotta-deep: #8b4a22;
  --cream: #f6f1e8;
  --cream-dark: #e8dfd0;
  --ink: #1f1f1f;
  --ink-muted: #4a4a4a;
  --white: #fffdf9;
  --header-height: 4.5rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--terracotta);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.container.narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.band {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.band--dark {
  background: var(--ink);
  color: var(--cream);
}

.band--dark a {
  color: var(--cream-dark);
}

.band--dark a:hover {
  color: var(--white);
}

.band--sage {
  background: var(--sage-deep);
  color: var(--white);
}

.band--cream {
  background: var(--cream);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgb(61 79 63 / 0.92);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border-bottom: 1px solid rgb(255 253 249 / 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-height);
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.menu-toggle {
  justify-self: start;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

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

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

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

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark__logo {
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(255 253 249 / 0.15);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark__script {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.brand-mark__sans {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.9;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions__link {
  color: inherit;
  display: grid;
  place-items: center;
  text-decoration: none;
  opacity: 0.9;
}

.header-actions__link:hover {
  opacity: 1;
  color: var(--white);
}

.header-actions__cta {
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border: 0;
  border-bottom: 1px solid rgb(246 241 232 / 0.5);
  padding: 0 0 0.15rem;
  background: transparent;
  cursor: pointer;
}

.header-actions__cta:hover {
  color: var(--white);
  border-color: var(--white);
}

.header-actions__cta--ghost {
  opacity: 0.85;
}

.nav-text-button,
.footer-link-button {
  font: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.site-nav .nav-text-button {
  color: var(--cream);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav .nav-text-button:hover {
  color: var(--white);
}

.footer-link-button {
  opacity: 0.85;
  text-decoration: none;
}

.footer-link-button:hover {
  opacity: 1;
  color: var(--white);
}

.site-nav {
  border-top: 1px solid rgb(255 253 249 / 0.08);
  background: var(--sage-dark);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 0 1.25rem;
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: end center;
  padding: calc(var(--header-height) + 2rem) 1.25rem 4rem;
  overflow: hidden;
}

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

.hero__video,
.hero__fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__fallback {
  background:
    linear-gradient(180deg, rgb(61 79 63 / 0.35) 0%, rgb(31 31 31 / 0.75) 85%),
    radial-gradient(circle at 20% 30%, #a8bf9f 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, #c4a484 0%, transparent 40%),
    linear-gradient(135deg, #7a9480 0%, #5f7360 40%, #3d4f3f 100%);
}

.hero__overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  max-width: 36rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero__title {
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero__script {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero__sans {
  font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.hero__tagline {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Typography blocks */
.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-title--light {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 3rem;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

.lead--light {
  color: rgb(255 253 249 / 0.92);
}

.text-link {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  color: var(--cream-dark);
}

.band:not(.band--dark) .text-link {
  color: var(--terracotta-deep);
}

/* Cards */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: 2rem 1.75rem;
}

.card__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.card__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* Highlight split */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.pattern-block {
  min-height: 280px;
  border-radius: 999px 999px 24px 24px;
  background:
    repeating-radial-gradient(circle at 0% 50%, transparent 0 8px, rgb(166 94 46 / 0.35) 8px 9px),
    linear-gradient(160deg, rgb(143 168 138 / 0.5), rgb(61 79 63 / 0.9));
  border: 2px solid rgb(246 241 232 / 0.25);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-copy p {
  margin: 0 0 1.5rem;
  color: var(--ink-muted);
}

.contact-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-meta strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.15rem;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--cream-dark);
}

.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--ink-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
  border-color: var(--sage);
}

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

.honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--terracotta);
  color: var(--white);
  transition: background 0.2s var(--ease);
}

.button:hover {
  background: var(--terracotta-deep);
}

.button--light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgb(255 253 249 / 0.55);
}

.button--light:hover {
  background: rgb(255 253 249 / 0.08);
}

.form-status {
  min-height: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
}

.form-status.is-success {
  color: var(--sage-deep);
}

.form-status.is-error {
  color: #8b2e2e;
}

/* Newsletter */
.newsletter-inline {
  text-align: center;
}

.newsletter-inline__lead {
  margin: 0 0 1.75rem;
  opacity: 0.88;
  font-size: 1.05rem;
}

.newsletter-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: center;
}

.field--grow {
  flex: 1 1 220px;
  max-width: 360px;
  text-align: left;
}

.newsletter-bot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.newsletter-consent {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

.newsletter-form--modal .newsletter-consent {
  text-align: left;
}

.band--dark .newsletter-consent {
  color: rgb(246 241 232 / 0.72);
}

.band--dark .newsletter-form .field label {
  color: rgb(246 241 232 / 0.9);
}

.band--dark .newsletter-form .form-status.is-error {
  color: #f0c4c4;
}

.newsletter-form__status {
  margin-top: 0.75rem;
  text-align: center;
}

.band--dark .form-status.is-success {
  color: var(--cream-dark);
}

.button--full {
  width: 100%;
}

body.is-modal-open {
  overflow: hidden;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.newsletter-modal[hidden] {
  display: none;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(31 31 31 / 0.72);
  backdrop-filter: blur(4px);
}

.newsletter-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: var(--cream);
  color: var(--ink);
  padding: 2.25rem 2rem 1.75rem;
  text-align: center;
  border: 1px solid var(--cream-dark);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
  animation: modal-in 0.45s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.newsletter-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
}

.newsletter-modal__close:hover {
  color: var(--ink);
}

.newsletter-modal__logo {
  margin: 0 auto 1rem;
  border-radius: 50%;
}

.newsletter-modal__title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
}

.newsletter-modal__desc {
  margin: 0 0 1.35rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.newsletter-form--modal {
  text-align: left;
}

.newsletter-form--modal .field {
  margin-bottom: 1rem;
}

.newsletter-modal__dismiss {
  margin-top: 1rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.newsletter-modal__dismiss:hover {
  color: var(--ink);
}

@media (max-width: 600px) {
  .header-actions__cta--ghost {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-modal__dialog {
    animation: none;
  }
}

/* Footer */
.site-footer {
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgb(246 241 232 / 0.12);
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
}

.footer-brand span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

.footer-tag {
  margin: 0;
  opacity: 0.75;
  max-width: 22rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.65;
}

.footer-bottom p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .pattern-block {
    min-height: 200px;
  }

  .brand-mark__text {
    display: none;
  }
}

@media (max-width: 600px) {
  .header-actions__cta {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
