:root {
  --cream: #FCF5DB;
  --cream-light: #FEFAEC;
  --cream-warm: #F5EBC4;
  --orange: #E8A33B;
  --green: #565E52;
  --green-soft: #8A9682;
  --text: #3D4239;
  --muted: #7A8275;
  --border: #D8D5C2;
  --shadow: 0 24px 60px -24px rgba(60, 64, 50, 0.35);
  --radius: 16px;
}

* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.1;
}

/* Background slideshow */
.bg-slideshow {
  position: fixed; 
  inset: 0; 
  z-index: -2; 
  overflow: hidden;
}
.bg-slide {
  position: absolute; 
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bgFade 24s infinite;
}
.bg-slide:nth-child(1) { animation-delay: 0s; }
.bg-slide:nth-child(2) { animation-delay: 6s; }
.bg-slide:nth-child(3) { animation-delay: 12s; }
.bg-slide:nth-child(4) { animation-delay: 18s; }

.bg-overlay {
  position: absolute; 
  inset: 0;
  background: linear-gradient(160deg, rgba(252,245,219,0.55) 0%, rgba(86,94,82,0.45) 100%);
}

@keyframes bgFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Layout - CRITICAL MOBILE FIX */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  max-width: 100vw;
  width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.card {
  /* CRITICAL: Force card to never exceed viewport */
  width: 100%;
  max-width: calc(100vw - 1rem);
  background: rgba(254, 250, 236, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-sizing: border-box;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .card { 
    grid-template-columns: 1fr 1fr;
    max-width: 1080px;
  }
  .page { 
    height: 100vh; 
    padding: 1.5rem; 
  }
}

.col {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  box-sizing: border-box;
  width: 100%;
  min-width: 0; /* CRITICAL: Allow flexbox to shrink below content size */
}

@media (min-width: 768px) {
  .col { padding: 3rem; }
}

.col-left {
  background: rgba(245, 235, 196, 0.5);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
}
@media (min-width: 768px) {
  .col-left { border-bottom: 0; border-right: 1px solid var(--border); }
}
.col-right { justify-content: center; }

.logo-wrap {
  display: flex; 
  justify-content: center;
}
@media (min-width: 768px) {
  .logo-wrap { justify-content: flex-start; }
}
.logo-wrap img { 
  height: 180px; 
  width: auto;
  max-width: 100%; /* Prevent image overflow */
}
@media (min-width: 768px) { 
  .logo-wrap img { height: 200px; } 
}

.intro { 
  text-align: center;
  width: 100%;
  min-width: 0; /* CRITICAL: Allow text wrapping */
}
@media (min-width: 768px) { 
  .intro { text-align: left; } 
}
.intro p {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 28rem;
  width: 100%;
  word-wrap: break-word; /* CRITICAL: Force text wrapping */
  overflow-wrap: break-word;
}
@media (min-width: 768px) { 
  .intro p { margin-left: 0; } 
}
@media (max-width: 767px) { 
  .intro p { 
    margin-left: auto; 
    margin-right: auto; 
  } 
}

.accent-italic {
  display: block;
  color: var(--orange);
  font-style: italic;
  font-weight: 400;
  margin-top: 0.25rem;
}

.address {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 768px) { 
  .address { justify-content: flex-start; } 
}
.address:hover { color: var(--orange); }
.address svg { 
  width: 20px; 
  height: 20px; 
  margin-top: 4px; 
  flex-shrink: 0; 
}
.address .label { 
  display: block; 
  font-weight: 500; 
  letter-spacing: 0.02em; 
}
.address .value { 
  display: block; 
  color: var(--muted); 
  transition: color 0.2s;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.address:hover .value { color: var(--orange); }

.overline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.socials { 
  list-style: none; 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem;
  width: 100%;
}
.socials a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream-light);
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  box-sizing: border-box;
  width: 100%;
}
.socials a .left { 
  display: inline-flex; 
  align-items: center; 
  gap: 1rem; 
  min-width: 0;
}
.socials a svg { 
  width: 20px; 
  height: 20px; 
  flex-shrink: 0;
}
.socials a .arrow { 
  color: var(--muted); 
  transition: transform 0.3s, color 0.3s;
  flex-shrink: 0;
}
.socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}
.socials a:hover .arrow { 
  color: var(--cream); 
  transform: translateX(4px); 
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--orange);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s;
  box-sizing: border-box;
}
.cta svg { 
  width: 16px; 
  height: 16px; 
  flex-shrink: 0;
}
.cta:hover { background: var(--green); }

.coming-soon {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { 
  .coming-soon { font-size: 0.85rem; } 
}
