/* ============================================================
   styles.css  –  Share My Dine / AI Draftsman page styles
   ============================================================ */

:root {
  --primary-orange: #C4622D;
  --primary-teal:   #32C7A8;
  --bg-color:       #FFFFFF;
  --bg-alt:         #F9FAFB;
  --text-dark:      #1A1310;
  --text-muted:     #6B7280;
  --transition:     all 0.25s ease;
  --shadow-teal:    0 8px 28px rgba(50, 199, 168, 0.18);
}

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

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #F1F5F9;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #1e293b;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary-orange);
  background: rgba(196, 98, 45, 0.07);
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: var(--primary-orange);
  color: #fff;
  border-color: var(--primary-orange);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.btn-outline:hover {
  background: rgba(196, 98, 45, 0.07);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border-color: #E5E7EB;
}

.btn-secondary:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   SECTION TYPOGRAPHY
   ============================================================ */
.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 138, 77, 0.12);
  border: 1px solid rgba(255, 138, 77, 0.3);
  color: #ff8a4d;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 1rem;
}

.highlight-teal {
  color: #ff8a4d;
}

/* ============================================================
   CARD GRID
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-color);
  border: 1.5px solid #E5E7EB;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-teal);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-orange);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.card-link:hover { gap: 8px; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #C4622D 0%, #E8843A 100%);
  padding: 5rem 2rem;
  text-align: center;
}

.cta-banner-content {
  max-width: 680px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #1A1310;
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 2rem 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--primary-orange); }

.footer-logo-img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.5rem;
  display: block;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary-orange);
  color: #fff;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* ============================================================
   SMD FOOTER & BOTTOM BAR (used by ai draft.html)
   ============================================================ */
.smd-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.smd-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-links a { padding: 6px 9px; font-size: 0.825rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-auth  { display: none; }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

  .smd-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .smd-footer-grid > div:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }

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

  .smd-footer-grid { grid-template-columns: 1fr; }
  .smd-footer-grid > div:first-child { grid-column: span 1; }

  .smd-footer-bottom { flex-direction: column; align-items: flex-start; }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { text-align: center; }
}
