/* ==========================================================================
   Madras Tales - Coming Soon Page Stylesheet
   Crafted with Heritage Aesthetics & Modern Design Engineering
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette (derived directly from brand SVG cls-1: #460c0a) */
  --color-maroon-deep: #460c0a;
  --color-maroon-primary: #591619;
  --color-maroon-hover: #3a080a;
  --color-maroon-accent: #7a2b2e;
  --color-maroon-translucent: rgba(70, 12, 10, 0.08);
  --color-maroon-border: rgba(70, 12, 10, 0.22);
  
  /* Heritage Beige Background Tones */
  --color-beige-bg: #f5efe6;
  --color-beige-soft: #faf5ee;
  --color-beige-card: rgba(255, 255, 255, 0.55);
  --color-beige-darker: #eae0d2;
  
  /* Text & Accents */
  --color-text-headline: #460c0a;
  --color-text-subhead: #5a2224;
  --color-text-muted: #734845;
  --color-text-subtle: #8e6764;
  --color-overlay-light: rgba(245, 239, 230, 0.92);

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevations */
  --shadow-button: 0 4px 16px rgba(70, 12, 10, 0.2), 0 1px 3px rgba(70, 12, 10, 0.12);
  --shadow-button-hover: 0 8px 24px rgba(70, 12, 10, 0.28), 0 2px 6px rgba(70, 12, 10, 0.16);
  --shadow-card: 0 10px 30px rgba(70, 12, 10, 0.06), 0 1px 4px rgba(70, 12, 10, 0.04);
  --shadow-modal: 0 24px 60px rgba(45, 8, 7, 0.25), 0 8px 20px rgba(45, 8, 7, 0.15);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.2, 0, 0, 1);
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-color: var(--color-beige-bg);
  color: var(--color-text-headline);
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--color-beige-bg);
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   App Layout (50/50 Center Separation with Subtle Organic Wavy Edge)
   -------------------------------------------------------------------------- */
.page-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--color-beige-bg);
  align-items: stretch;
}

/* Left Hero Entrance Visual Column (50% Center Separation & Full Section Height) */
.hero-image-column {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  min-height: 100%;
  align-self: stretch;
  background-color: var(--color-beige-bg);
  overflow: hidden;

  /* Subtle, non-uniform organic wavy edge at the 50% center division */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L98,0 C99.2,60 97.4,130 98.3,200 C99.1,270 96.9,350 97.8,420 C98.7,490 99.6,560 98.4,640 C97.5,710 96.8,780 98.2,850 C99.3,920 97.5,960 98.0,1000 L0,1000 Z' fill='%23000'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L98,0 C99.2,60 97.4,130 98.3,200 C99.1,270 96.9,350 97.8,420 C98.7,490 99.6,560 98.4,640 C97.5,710 96.8,780 98.2,850 C99.3,920 97.5,960 98.0,1000 L0,1000 Z' fill='%23000'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Image fills entire section height all the way to bottom */
.hero-image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Static Hero Image (no zoom, no animations, full magnification) */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Pillar Vertical Wordmark Overlay */
.pillar-words {
  position: absolute;
  top: 15%;
  left: 3rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  pointer-events: none;
}

.pillar-words span {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(250, 245, 238, 0.88);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 2px 10px rgba(0, 0, 0, 0.25);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Right Content Column (50% Center Separation)
   -------------------------------------------------------------------------- */
.content-column {
  flex: 0 0 50%;
  width: 50%;
  min-height: 100%;
  background-color: var(--color-beige-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3rem;
  z-index: 6;
}

/* Subtle Parchment Texture & Vignette Overlay */
.content-column::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(ellipse at 80% 20%, rgba(255, 255, 255, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(70, 12, 10, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.content-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Logo & Branding Section (Enlarged for Prominence)
   -------------------------------------------------------------------------- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeInDown 0.8s var(--ease-smooth) forwards 0.1s;
}

.brand-logomark-wrap {
  width: 136px;
  height: 136px;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-kolam-svg,
.brand-logomark {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-logotype-svg {
  width: 320px;
  max-width: 90vw;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Headings & Subtitles
   -------------------------------------------------------------------------- */
.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 500;
  color: var(--color-maroon-deep);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
  text-wrap: balance;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.25s;
}

.diamond-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon-deep);
  font-size: 0.75rem;
  margin: 0.25rem 0 1.1rem;
  opacity: 0.85;
}

.hero-subheading {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.45vw, 1.28rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-subhead);
  line-height: 1.45;
  margin-bottom: 1.85rem;
  text-wrap: balance;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.35s;
}

/* --------------------------------------------------------------------------
   CTA Button Section
   -------------------------------------------------------------------------- */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.45s;
}

.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  background-color: var(--color-maroon-primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition-property: transform, background-color, box-shadow, color;
  transition-duration: 220ms;
  transition-timing-function: var(--ease-smooth);
  min-height: 48px;
}

.btn-circle .arrow {
  display: inline-block;
  font-size: 0.95rem;
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-smooth);
}

.btn-circle:hover {
  background-color: var(--color-maroon-hover);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.btn-circle:hover .arrow {
  transform: translateX(4px);
}

.btn-circle:active {
  transform: scale(0.96);
  box-shadow: var(--shadow-button);
}

.cta-helper-text {
  margin-top: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.015em;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   First Chapter Section Divider
   -------------------------------------------------------------------------- */
.chapter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.85rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.55s;
}

.chapter-divider::before,
.chapter-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-maroon-border);
}

.chapter-title {
  padding: 0 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-maroon-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Product Category Lineup (Placeholders)
   -------------------------------------------------------------------------- */
.product-lineup {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 530px;
  margin-bottom: 2.1rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.65s;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  padding: 0 0.35rem;
}

/* Icon Container (Clean, transparent, static slot) */
.icon-placeholder-slot {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Static Category Illustration */
.product-category-img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

/* Clean Placeholder Visual Guide */
.icon-placeholder-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-maroon-deep);
  opacity: 0.75;
}

.icon-placeholder-guide svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-maroon-deep);
  stroke-width: 1.6;
}

.product-label {
  font-family: var(--font-serif);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-maroon-deep);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Tagline & Story Footer
   -------------------------------------------------------------------------- */
.tagline-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.75s;
}

.tagline-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color-text-headline);
  text-wrap: balance;
}

.footer-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  opacity: 0;
  animation: fadeInUp 0.8s var(--ease-smooth) forwards 0.85s;
}

.story-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  margin-bottom: 0.95rem;
}

.story-divider::before,
.story-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-maroon-border);
}

.story-title {
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-maroon-deep);
  white-space: nowrap;
}

/* Social Icon Buttons */
.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-maroon-deep);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(70, 12, 10, 0.16);
  transition-property: transform, background-color, box-shadow;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-smooth);
}

.social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-btn:hover {
  background-color: var(--color-maroon-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(70, 12, 10, 0.24);
}

.social-btn:active {
  transform: scale(0.96);
}

.social-handle {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--color-maroon-deep);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition-property: color, opacity;
  transition-duration: 180ms;
  padding: 4px 8px;
}

.social-handle:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Modal Dialog (Join the Circle)
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(45, 8, 7, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 250ms;
  transition-timing-function: var(--ease-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background-color: var(--color-beige-soft);
  border-radius: 20px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: var(--shadow-modal);
  border: 1px solid rgba(70, 12, 10, 0.15);
  text-align: center;
  transform: translateY(20px) scale(0.97);
  transition-property: transform, opacity;
  transition-duration: 280ms;
  transition-timing-function: var(--ease-smooth);
}

.modal-overlay.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background-color: rgba(70, 12, 10, 0.06);
  color: var(--color-maroon-deep);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  transition-property: background-color, transform;
  transition-duration: 180ms;
}

.modal-close-btn:hover {
  background-color: rgba(70, 12, 10, 0.12);
}

.modal-close-btn:active {
  transform: scale(0.92);
}

.modal-logo {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem;
  display: block;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--color-maroon-deep);
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-subhead);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-input {
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  border: 1.5px solid var(--color-maroon-border);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-maroon-deep);
  outline: none;
  transition-property: border-color, box-shadow;
  transition-duration: 200ms;
}

.form-input:focus {
  border-color: var(--color-maroon-deep);
  box-shadow: 0 0 0 3px rgba(70, 12, 10, 0.12);
}

.btn-submit {
  width: 100%;
  padding: 0.95rem;
  border-radius: 12px;
  background-color: var(--color-maroon-primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow-button);
  transition-property: transform, background-color, box-shadow;
  transition-duration: 200ms;
}

.btn-submit:hover {
  background-color: var(--color-maroon-hover);
  box-shadow: var(--shadow-button-hover);
}

.btn-submit:active {
  transform: scale(0.96);
}

.form-privacy-note {
  font-size: 0.72rem;
  color: var(--color-text-subtle);
  margin-top: 0.4rem;
}

/* Toast Message */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-maroon-deep);
  color: #ffffff;
  padding: 0.9rem 1.5rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-modal);
  font-size: 0.85rem;
  z-index: 120;
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition-property: opacity, transform;
  transition-duration: 280ms;
  transition-timing-function: var(--ease-smooth);
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-container {
    flex-direction: column;
  }

  .hero-image-column {
    flex: none;
    width: 100%;
    height: 48vh;
    min-height: 350px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1000,0 L1000,98 C920,99.2 850,97.4 780,98.3 C710,99.1 640,96.9 560,97.8 C490,98.7 420,99.6 350,98.4 C270,97.5 200,96.8 130,98.2 C60,99.3 30,97.5 0,98.0 L0,0 Z' fill='%23000'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1000,0 L1000,98 C920,99.2 850,97.4 780,98.3 C710,99.1 640,96.9 560,97.8 C490,98.7 420,99.6 350,98.4 C270,97.5 200,96.8 130,98.2 C60,99.3 30,97.5 0,98.0 L0,0 Z' fill='%23000'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .hero-image-wrapper {
    position: relative;
    height: 100%;
  }

  .content-column {
    flex: none;
    width: 100%;
    padding: 3rem 1.75rem 4rem;
  }

  .pillar-words {
    top: 15%;
    left: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-image-column {
    height: 42vh;
    min-height: 290px;
  }

  .pillar-words {
    left: 1.25rem;
    top: 12%;
  }

  .pillar-words span {
    font-size: 0.65rem;
  }

  .content-column {
    padding: 2rem 1.15rem 3.5rem;
  }

  .brand-logomark-wrap {
    width: 108px;
    height: 108px;
    margin-bottom: 0.95rem;
  }

  .brand-logotype-svg {
    width: 280px;
    max-width: 88vw;
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .hero-subheading {
    font-size: 1.05rem;
  }

  .btn-circle {
    padding: 0.85rem 1.75rem;
    font-size: 0.72rem;
    width: 100%;
    max-width: 320px;
  }

  .product-lineup {
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
  }

  .product-item {
    flex: 0 0 74px;
  }

  .icon-placeholder-slot {
    width: 54px;
    height: 54px;
  }

  .product-category-img {
    width: 48px;
    height: 48px;
  }

  .product-label {
    font-size: 0.68rem;
  }

  .chapter-title {
    font-size: 0.65rem;
    padding: 0 0.65rem;
  }
}
