/* ============================================
   Triangle Coffee House — Stylesheet
   Bold editorial · Teal + Slate Grey
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #1E293B;
  background-color: #FAFAF8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Typography ── */
:root {
  --teal-900: #134E4A;
  --teal-800: #115E59;
  --teal-700: #0F766E;
  --teal-600: #0D9488;
  --teal-500: #14B8A6;
  --teal-100: #CCFBF1;
  --teal-50:  #F0FDFA;
  --slate-950: #0F172A;
  --slate-900: #1E293B;
  --slate-800: #334155;
  --slate-700: #475569;
  --slate-600: #64748B;
  --slate-500: #94A3B8;
  --slate-400: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50:  #F8FAFC;
  --cream:     #FAFAF8;
  --warm-white:#FFFCF7;

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Section Eyebrow ── */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1rem;
}

/* ── Section Title ── */
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal-700);
  color: #FFFFFF;
  border-color: var(--teal-700);
}

.btn-primary:hover {
  background: var(--teal-800);
  border-color: var(--teal-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--slate-900);
  border-color: var(--slate-400);
}

.btn-outline:hover {
  border-color: var(--teal-700);
  color: var(--teal-700);
}

.btn-small {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
}

.btn-full {
  width: 100%;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 1px 20px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate-900);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--teal-700);
  line-height: 1;
}

.logo-light .logo-mark {
  color: var(--teal-500);
}

.logo-light .logo-text {
  color: #FFFFFF;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:not(.btn):hover {
  color: var(--teal-700);
}

.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-700);
  transition: width 0.25s ease;
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  width: 40px;
  height: 40px;
}

.hamburger {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 2px;
  background: var(--slate-900);
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--slate-900);
  transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-content {
  padding-right: 1rem;
}

.hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--slate-950);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-headline em {
  font-style: italic;
  color: var(--teal-700);
}

.hero-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--slate-700);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

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

.hero-accent {
  position: absolute;
  bottom: -2rem;
  left: -2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  border: 4px solid var(--cream);
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid var(--slate-400);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--teal-700);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
}

/* ── Ticker ── */
.ticker {
  background: var(--slate-900);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 2rem;
  align-items: center;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

.ticker-item {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.ticker-dot {
  color: var(--teal-500);
  font-size: 0.5rem;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── About ── */
.about {
  padding: 7rem 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-col {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

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

.about-img-float {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
  border: 4px solid var(--cream);
}

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

.about-text-col .section-title {
  margin-bottom: 1.5rem;
}

.about-text-col p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--slate-700);
  margin-bottom: 1.25rem;
}

.about-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--slate-200);
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  background: var(--slate-200);
  align-self: stretch;
  margin: 0 0.5rem;
}

/* ── Menu ── */
.menu {
  padding: 7rem 0;
  background: var(--slate-50);
}

.menu-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.menu-header .section-title {
  margin-bottom: 1rem;
}

.menu-lead {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.7;
}

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

.menu-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 2.25rem;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.menu-card:hover {
  border-color: var(--teal-500);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.1);
  transform: translateY(-2px);
}

.menu-card-icon {
  width: 48px;
  height: 48px;
  color: var(--teal-700);
  margin-bottom: 1.25rem;
}

.menu-card-icon svg {
  width: 100%;
  height: 100%;
}

.menu-card-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--slate-100);
}

.menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--slate-900);
}

.menu-item-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  text-align: right;
  flex-shrink: 0;
}

.menu-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--slate-500);
  font-style: italic;
}

/* ── Space / Gallery ── */
.space {
  padding: 7rem 0;
  background: var(--cream);
}

.space-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.space-lead {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.75;
}

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

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

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

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-item--large {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.gallery-item--large img {
  height: 400px;
}

.gallery-item--tall {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.gallery-item--tall img {
  height: 100%;
  min-height: 500px;
}

.gallery-item:not(.gallery-item--large):not(.gallery-item--tall) img {
  height: 220px;
}

/* ── Testimonials ── */
.testimonials {
  padding: 7rem 0;
  background: var(--teal-900);
  color: #FFFFFF;
}

.testimonials .section-eyebrow {
  color: var(--teal-500);
}

.testimonials .section-title {
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 3rem !important;
}

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

.testimonial-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.testimonial-quote {
  width: 32px;
  height: 32px;
  color: var(--teal-500);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal-500);
}

/* ── Visit ── */
.visit {
  padding: 7rem 0;
  background: var(--cream);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.visit-info .section-title {
  margin-bottom: 2.5rem;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}

.visit-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.visit-icon {
  width: 24px;
  height: 24px;
  color: var(--teal-700);
  flex-shrink: 0;
  margin-top: 2px;
}

.visit-detail h4 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.visit-detail p {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.visit-detail a {
  color: var(--teal-700);
  transition: color 0.2s ease;
}

.visit-detail a:hover {
  color: var(--teal-800);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrap {
  background: #FFFFFF;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  color: var(--slate-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
  background: #FFFFFF;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--slate-400);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.form-success svg {
  width: 24px;
  height: 24px;
  color: var(--teal-700);
  flex-shrink: 0;
}

.form-success p {
  font-size: 0.9375rem;
  color: var(--teal-900);
  font-weight: 500;
}

/* Map */
.visit-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
  min-height: 500px;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

/* ── Footer ── */
.site-footer {
  background: var(--slate-950);
  color: #FFFFFF;
  padding: 4rem 0 0;
}

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

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-links h4,
.footer-contact h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--slate-500);
  transition: color 0.2s ease;
}

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

.footer-contact p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--teal-500);
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--teal-400);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--slate-600);
}

/* ── Mobile Navigation ── */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    padding: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .main-nav a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .main-nav a:not(.btn):hover {
    background: var(--slate-100);
  }

  .main-nav a:not(.btn)::after {
    display: none;
  }

  .main-nav .btn {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 4rem;
  }

  .hero-content {
    padding-right: 0;
    order: 1;
  }

  .hero-image {
    order: 2;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-accent {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-img-float {
    right: 0;
    bottom: -1.5rem;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item--large {
    grid-column: 1 / 3;
  }

  .gallery-item--tall {
    grid-column: 1 / 3;
    grid-row: auto;
  }

  .gallery-item--tall img,
  .gallery-item--large img {
    height: 280px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .visit-map {
    min-height: 350px;
  }

  .map-placeholder {
    min-height: 350px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--large,
  .gallery-item--tall {
    grid-column: 1;
  }

  .gallery-item img {
    height: 220px !important;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
  }
}
