/* public/css/style.css — Fixdome brand palette, matching the pitch deck */

:root {
  --dark: #4C4639;
  --mid-dark: #6B5D48;
  --mid: #8F7B62;
  --light: #AC9A7C;
  --lightest: #CBB9A1;
  --accent: #A85C32;
  --cream: #F4F0E6;
  --white: #FFFFFF;
  --ink: #3D3830;
  --border: #E4DDCC;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: Calibri, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); margin: 0 0 0.5em; line-height: 1.2; }
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.3rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; }
p { margin: 0 0 1.15em; font-size: 1.05rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--dark); color: var(--white); }
.btn-primary:hover { background: var(--mid-dark); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { opacity: 0.9; }
.btn-outline { background: transparent; color: var(--dark); border: 1.5px solid var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---- Header / Nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1200px; margin: 0 auto;
}
.logo-link { display: flex; align-items: center; gap: 0.6rem; }
.logo-link img { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a { font-size: 1.08rem; font-weight: 700; color: var(--dark); position: relative; padding: 0.3rem 0; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 240px; padding: 0.5rem 0; margin-top: 0.6rem;
}
/* Invisible bridge over the visual gap so the cursor never leaves the hoverable
   area while moving from the nav link down into the dropdown — without this,
   :hover is lost mid-transit and the menu closes before it can be clicked. */
.nav-dropdown-menu::before {
  content: ""; position: absolute; top: -0.6rem; left: 0; right: 0; height: 0.6rem;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 0.65rem 1.2rem; font-weight: 600; font-size: 1rem; color: var(--ink); }
.nav-dropdown-menu a:hover { background: var(--cream); color: var(--accent); }
.cart-link { display: flex; align-items: center; gap: 0.4rem; font-weight: 700; }
.cart-badge {
  background: var(--accent); color: var(--white); border-radius: 999px;
  font-size: 0.72rem; padding: 0.1rem 0.5rem; font-weight: 700;
}
.mobile-nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--dark); }

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 0.3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.2s ease; z-index: 99; }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { padding: 0.8rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-dropdown-menu { display: block; position: static; border: none; box-shadow: none; padding-left: 1rem; margin: 0; }
  .mobile-nav-toggle { display: block; }
}

/* ---- Hero ---- */
.hero {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 1.5rem 6rem;
  text-align: center;
}
.hero h1 { color: var(--white); font-size: 3.4rem; max-width: 950px; margin: 0 auto 1rem; }
.hero p.lead { color: var(--lightest); font-size: 1.25rem; max-width: 700px; margin: 0 auto 2rem; font-style: italic; }
.hero .btn-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--cream); }
.section-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--cream); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card-body .cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-weight: 700; }
.card-body h3 { margin: 0.35rem 0 0.4rem; font-size: 1.2rem; }
.card-body .price { color: var(--accent); font-weight: 700; font-size: 1.15rem; }
.card-body .desc { font-size: 0.92rem; color: var(--ink); }

.line-card { position: relative; border-radius: 12px; overflow: hidden; color: var(--white); min-height: 320px; display: flex; align-items: flex-end; }
.line-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.line-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(76,70,57,0.05) 30%, rgba(76,70,57,0.9) 100%); z-index: 1; }
.line-card .line-card-body { position: relative; z-index: 2; padding: 1.6rem; }
.line-card h3 { color: var(--white); font-size: 1.4rem; }
.line-card p { color: var(--lightest); font-size: 0.9rem; margin-bottom: 0.8rem; }

/* ---- Founders ---- */
.founder-card { display: flex; gap: 1.75rem; align-items: flex-start; background: var(--cream); border-radius: 12px; padding: 2rem; }
.founder-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.founder-card h3 { margin-bottom: 0.5rem; }
.founder-card .role {
  display: inline-block; background: var(--dark); color: var(--white); font-weight: 700; font-size: 0.85rem;
  padding: 0.35rem 0.9rem; border-radius: 999px; margin-bottom: 1rem; letter-spacing: 0.02em;
}
.founder-card ul { margin: 0; padding-left: 1.15rem; }
.founder-card li { margin-bottom: 0.5rem; }
@media (max-width: 700px) { .founder-card { flex-direction: column; align-items: center; text-align: center; } .founder-card ul { text-align: left; } }

/* ---- Materials section ---- */
.materials-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
@media (max-width: 900px) { .materials-grid { grid-template-columns: 1fr; } }
.material-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 1.8rem; text-align: center; }
.material-card .mat-icon { font-size: 2.4rem; margin-bottom: 0.8rem; }
.material-card h3 { font-size: 1.25rem; }
.material-pillars { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.pillar { background: var(--dark); color: var(--white); padding: 0.6rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }

/* ---- India Secure section ---- */
.india-secure { background: var(--dark); color: var(--white); padding: 4.5rem 0; }
.india-secure .flag-row { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.flag-strip { width: 90px; height: 60px; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.india-secure h2 { color: var(--white); text-align: center; }
.india-secure .sub { text-align: center; color: var(--lightest); max-width: 700px; margin: 0 auto 2.5rem; font-style: italic; }
.secure-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .secure-cards { grid-template-columns: 1fr; } }
.secure-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; }
.secure-card img { width: 100%; height: 200px; object-fit: cover; }
.secure-card .sc-body { padding: 1.3rem; }
.secure-card h3 { color: var(--white); font-size: 1.15rem; }
.secure-card p { color: var(--lightest); font-size: 0.92rem; margin-bottom: 0; }

/* ---- About Us illustrative rows ---- */
.about-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 3rem; }
.about-row.reverse { direction: rtl; }
.about-row.reverse > * { direction: ltr; }
.about-row img { border-radius: 12px; }
@media (max-width: 800px) { .about-row, .about-row.reverse { grid-template-columns: 1fr; direction: ltr; } }

/* ---- Why Fixdome tiles ---- */
.why-tile { text-align: center; padding: 1rem; }
.why-tile .icon-circle {
  width: 70px; height: 70px; border-radius: 50%; background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 1.6rem; font-weight: 700; font-family: var(--font-head);
}

/* ---- Product detail ---- */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: flex-start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-photo { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 0.7rem 0; vertical-align: top; }
.spec-table td:first-child { color: var(--mid-dark); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; width: 40%; }
.price-tag {
  display: inline-flex; align-items: baseline; gap: 0.5rem; background: linear-gradient(135deg, var(--accent), #8a481f);
  color: var(--white); border-radius: 999px; padding: 0.9rem 1.8rem; margin-bottom: 1.4rem;
  box-shadow: 0 8px 20px rgba(168,92,50,0.28);
}
.price-tag .amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 700; }
.price-tag .unit-note { font-size: 0.85rem; color: rgba(255,255,255,0.85); }
.qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.qty-row input[type=number] { width: 80px; padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; font-size: 1rem; }
.action-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---- Cart / Checkout ---- */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.cart-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--mid-dark); padding: 0.6rem 0.5rem; border-bottom: 2px solid var(--dark); }
.cart-table td { padding: 1rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-item-name { font-weight: 700; }
.cart-table input[type=number] { width: 60px; padding: 0.35rem; border: 1px solid var(--border); border-radius: 6px; }
.cart-total-row { text-align: right; font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--mid-dark); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 1rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--dark); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--font-body); font-size: 0.95rem;
}
.form-field textarea { min-height: 90px; resize: vertical; }
.alert { padding: 0.9rem 1.1rem; border-radius: 8px; margin-bottom: 1.2rem; font-size: 0.92rem; }
.alert-error { background: #FDECEA; color: #8A2E22; border: 1px solid #F3C6BE; }
.alert-success { background: #EAF3E7; color: #2E5C25; border: 1px solid #C7DFC0; }
.alert-info { background: var(--cream); color: var(--mid-dark); border: 1px solid var(--border); }

/* ---- Slideshow ---- */
.slideshow { position: relative; overflow: hidden; border-radius: 12px; }
.slideshow-track { display: flex; transition: transform 0.5s ease; }
.slideshow-slide { min-width: 100%; position: relative; }
.slideshow-slide img { width: 100%; height: 460px; object-fit: cover; }
.slideshow-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 2rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent); color: var(--white);
}
.slideshow-caption h3 { color: var(--white); margin-bottom: 0.2rem; }
.slideshow-dots { position: absolute; bottom: 1rem; right: 1.5rem; display: flex; gap: 0.4rem; z-index: 2; }
.slideshow-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; }
.slideshow-dots button.active { background: var(--white); }
@media (max-width: 700px) { .slideshow-slide img { height: 280px; } }

/* ---- Footer ---- */
.site-footer { background: var(--dark); color: var(--lightest); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.9rem; }
.site-footer a { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--lightest); }
.site-footer a:hover { color: var(--white); }
.social-row { display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-row a {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,0.1); color: var(--lightest); margin-bottom: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.social-row a:hover { background: var(--accent); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.3rem; font-size: 0.82rem; text-align: center; color: var(--light); }

/* ---- Misc ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge { display: inline-block; background: var(--cream); color: var(--mid-dark); font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; }
.divider { height: 1px; background: var(--border); border: none; margin: 2.5rem 0; }
