/*
Theme Name: Babu Home Product
Theme URI: https://example.com/babu-home-product
Author: OpenAI
Author URI: https://openai.com/
Description: A responsive, editable WordPress theme recreated from the supplied Babu Home Product mockup. Includes editable Customizer settings, menus, product posts, featured images, and mobile navigation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: babu-home-product
Tags: custom-logo, custom-menu, featured-images, one-column, e-commerce, responsive-layout
*/

:root {
  --navy: #001b39;
  --navy-2: #002a55;
  --gold: #f3b400;
  --gold-2: #ffca23;
  --ink: #101b35;
  --muted: #5d6575;
  --line: #d7d9df;
  --light: #f6f7f9;
  --green: #25b51f;
  --white: #fff;
  --shadow: 0 18px 45px rgba(0, 22, 52, .13);
  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar {
  background: #00152d;
  color: #fff;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.topbar__inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar__welcome { display: flex; align-items: center; gap: 8px; }
.topbar__welcome::before { content: "✣"; color: var(--gold); }
.topbar__social { display: flex; align-items: center; gap: 14px; }
.topbar__social a { opacity: .9; font-weight: 700; }

.site-header {
  background: linear-gradient(135deg, #00224a 0%, #00152f 72%);
  color: #fff;
  position: relative;
  z-index: 20;
}
.site-header__inner { min-height: 106px; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; gap: 24px; }
.brand, .custom-logo-link { display: inline-flex; align-items: center; min-width: 0; }
.brand img, .custom-logo-link img { width: 255px; max-height: 84px; object-fit: contain; object-position: left center; }
.brand__text { display: grid; gap: 2px; }
.brand__text strong { color: var(--gold-2); font-size: 32px; line-height: 1; letter-spacing: .03em; }
.brand__text span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav ul { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: clamp(18px, 2.6vw, 38px); }
.primary-nav a { display: block; padding: 13px 0; font-size: 14px; font-weight: 750; text-transform: uppercase; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav a:focus-visible { color: var(--gold-2); border-bottom-color: var(--gold); }
.header-call { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.icon-circle { width: 48px; height: 48px; flex: 0 0 48px; border: 2px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); font-size: 24px; }
.header-call strong { display: block; font-size: 21px; line-height: 1.05; }
.header-call span { color: var(--gold-2); font-weight: 700; font-size: 14px; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 8px; width: 45px; height: 42px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 430px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,17,39,.92) 0%, rgba(0,17,39,.76) 34%, rgba(0,17,39,.18) 72%, rgba(0,17,39,.12) 100%),
    url('assets/images/hero-landscape.jpg') center/cover no-repeat;
  border-bottom: 2px solid var(--gold);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 106px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(41,20,0,.72)); }
.hero__inner { min-height: 430px; display: grid; grid-template-columns: 38% 62%; align-items: center; gap: 18px; }
.hero__copy { position: relative; z-index: 3; padding: 48px 0 52px; }
.hero__eyebrow { display: inline-flex; padding: 6px 12px; background: var(--gold); color: #111; font-weight: 850; font-size: 13px; text-transform: uppercase; transform: skew(-8deg); }
.hero h1 { margin: 10px 0 0; font-family: Georgia, "Times New Roman", serif; color: var(--gold-2); font-size: clamp(66px, 8vw, 112px); line-height: .84; letter-spacing: .015em; text-shadow: 0 6px 12px rgba(0,0,0,.45); }
.hero h2 { margin: 14px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
.hero__subtitle { max-width: 485px; font-size: 18px; font-weight: 700; }
.hero__tagline { display: inline-block; margin-top: 18px; color: #fff; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 20px; background: linear-gradient(90deg, #a20b0b, #d62f2f, transparent); padding: 6px 80px 6px 15px; transform: rotate(-2deg); }
.hero__media { align-self: end; position: relative; min-height: 400px; }
.hero__products { position: absolute; right: 70px; bottom: 23px; width: min(610px, 88%); border-radius: 7px; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.hero__seal { position: absolute; left: -58px; bottom: 22px; width: 172px; filter: drop-shadow(0 10px 15px rgba(0,0,0,.35)); }
.hero__milk { position: absolute; right: -62px; top: -5px; width: 240px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); }
.value-badge { position: absolute; right: -2px; bottom: 30px; width: 126px; height: 126px; border-radius: 50%; background: #b20d16; color: #fff; border: 4px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.28); display: grid; place-content: center; text-align: center; font-weight: 800; line-height: 1.05; }
.value-badge strong { display: block; font-size: 25px; }

.contact-strip { background: var(--navy); color: #fff; }
.contact-strip__inner { min-height: 77px; display: grid; grid-template-columns: 1fr 1.12fr; align-items: center; }
.contact-block { display: flex; align-items: center; gap: 16px; padding: 15px 0; }
.contact-block + .contact-block { border-left: 1px solid var(--gold); padding-left: 44px; }
.contact-block__icon { width: 48px; height: 48px; border: 2px solid var(--gold); color: var(--gold); border-radius: 50%; display: grid; place-items: center; font-size: 24px; flex: 0 0 auto; }
.contact-block small { display: block; color: var(--gold); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.contact-block strong { display: block; font-size: clamp(16px, 2vw, 22px); line-height: 1.25; }

.section { padding: 46px 0; }
.section--soft { background: linear-gradient(180deg, #fff, #f8f8f9); }
.section-title { margin: 0 0 28px; display: flex; align-items: center; justify-content: center; gap: 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(28px, 3vw, 38px); letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.section-title::before, .section-title::after { content: ""; width: 58px; height: 8px; background: linear-gradient(90deg, transparent, var(--gold), transparent); clip-path: polygon(0 45%, 70% 45%, 70% 0, 100% 50%, 70% 100%, 70% 55%, 0 55%); }

.products-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.product-card { border: 1px solid #9297a1; border-radius: 11px; overflow: hidden; background: #fff; transition: .25s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.product-card__image { aspect-ratio: 1.04 / 1; overflow: hidden; background: #f7f6f2; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }
.product-card__title { min-height: 50px; display: grid; place-items: center; padding: 10px; text-align: center; font-weight: 850; font-size: 17px; border-top: 1px solid #c7c9cf; }

.benefit-box { border: 1px solid #8e939e; border-radius: 10px; overflow: hidden; background: #fff; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); }
.benefit { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 20px 18px; }
.benefit + .benefit { border-left: 1px solid #e1e2e6; }
.benefit__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 24px; }
.benefit strong { display: block; text-transform: uppercase; font-size: 13px; line-height: 1.15; }
.benefit span { display: block; margin-top: 5px; color: #262c38; font-size: 12px; line-height: 1.35; }

.about { display: grid; grid-template-columns: .78fr 1.22fr; gap: 48px; align-items: center; }
.about__copy h2 { margin: 0 0 20px; font-size: 26px; text-transform: uppercase; }
.about__copy p { color: #303746; font-size: 15px; }
.check-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.check-list li::before { content: "✓"; color: var(--gold); margin-right: 8px; font-weight: 900; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 850; text-transform: uppercase; font-size: 13px; transition: .2s ease; }
.button--gold { background: var(--gold); color: #111; }
.button--gold:hover { background: #ffd247; transform: translateY(-2px); }
.about__image { position: relative; }
.about__image::before { content: ""; position: absolute; inset: 0 50% 0 -40px; background: linear-gradient(90deg, #fff, transparent); z-index: 1; pointer-events: none; }
.about__image img { width: 100%; min-height: 330px; object-fit: cover; border-radius: 0; }

.order-cta { background: var(--navy); color: #fff; overflow: hidden; border-bottom: 2px solid var(--gold); }
.order-cta__inner { min-height: 152px; display: grid; grid-template-columns: 280px 1fr auto; align-items: center; gap: 34px; }
.order-cta__phone-image { align-self: end; height: 170px; object-fit: contain; object-position: bottom center; }
.order-cta h2 { margin: 0; color: var(--gold-2); font-size: 28px; }
.order-cta p { margin: 2px 0 12px; font-size: 17px; font-weight: 700; }
.order-number { display: inline-flex; align-items: center; gap: 12px; padding: 9px 20px; border: 2px solid var(--gold); border-radius: 999px; font-size: 23px; font-weight: 850; color: var(--gold-2); }
.whatsapp-button { display: inline-flex; align-items: center; gap: 12px; background: var(--green); color: #fff; padding: 14px 24px; border-radius: 999px; font-size: 22px; font-weight: 850; box-shadow: 0 10px 25px rgba(0,0,0,.22); }
.whatsapp-button span { font-size: 14px; font-weight: 650; display: block; line-height: 1.1; }

.site-footer { background: linear-gradient(135deg, #00244a, #00152e); color: #fff; }
.footer-main { padding: 24px 0 28px; display: grid; grid-template-columns: 1.35fr .75fr .75fr 1fr; gap: 40px; }
.footer-brand img { width: 240px; margin-bottom: 10px; }
.footer-brand p { color: #d7deea; font-size: 13px; max-width: 310px; }
.footer-column h3 { margin: 0 0 13px; color: var(--gold); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.footer-column ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13px; color: #e2e7ef; }
.footer-column li::before { content: "›"; color: var(--gold); margin-right: 7px; }
.footer-contact { display: grid; gap: 8px; color: #e2e7ef; font-size: 13px; }
.footer-contact div { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.footer-social { display: flex; gap: 9px; margin-top: 13px; }
.footer-social a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); min-height: 52px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #dce2ea; font-size: 12px; }

.content-area { width: min(100% - 36px, 900px); margin: 50px auto; }
.entry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 24px rgba(0,0,0,.05); margin-bottom: 24px; }
.entry-card h1, .entry-card h2 { margin-top: 0; }
.entry-content > * { max-width: 100%; }

@media (max-width: 1050px) {
  .site-header__inner { grid-template-columns: 230px 1fr auto; gap: 14px; }
  .brand img, .custom-logo-link img { width: 220px; }
  .primary-nav ul { gap: 18px; }
  .header-call strong { font-size: 18px; }
  .hero__inner { grid-template-columns: 44% 56%; }
  .hero__products { right: 25px; width: 92%; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-box { grid-template-columns: repeat(3, 1fr); }
  .benefit:nth-child(4) { border-left: 0; border-top: 1px solid #e1e2e6; }
  .benefit:nth-child(5) { border-top: 1px solid #e1e2e6; }
  .order-cta__inner { grid-template-columns: 220px 1fr auto; }
}

@media (max-width: 860px) {
  .topbar__social { display: none; }
  .site-header__inner { min-height: 82px; grid-template-columns: 1fr auto; }
  .brand img, .custom-logo-link img { width: 210px; max-height: 70px; }
  .nav-toggle { display: block; }
  .header-call { display: none; }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: #00162f; max-height: 0; overflow: hidden; transition: max-height .25s ease; box-shadow: 0 12px 20px rgba(0,0,0,.25); }
  .site-header.is-open .primary-nav { max-height: 480px; }
  .primary-nav ul { display: grid; gap: 0; padding: 12px 20px 18px; }
  .primary-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .hero, .hero__inner { min-height: 620px; }
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__copy { padding: 38px 0 0; max-width: 570px; }
  .hero__media { min-height: 285px; }
  .hero__products { left: 50%; right: auto; transform: translateX(-50%); bottom: 14px; width: min(620px, 92%); }
  .hero__seal { left: 0; width: 140px; }
  .hero__milk { right: -30px; top: -20px; width: 190px; }
  .value-badge { right: 0; width: 104px; height: 104px; }
  .contact-strip__inner { grid-template-columns: 1fr; }
  .contact-block + .contact-block { border-left: 0; border-top: 1px solid rgba(243,180,0,.6); padding-left: 0; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about__image { order: -1; }
  .about__image::before { display: none; }
  .order-cta__inner { grid-template-columns: 1fr auto; padding: 25px 0; }
  .order-cta__phone-image { display: none; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 26px, var(--container)); }
  .topbar__inner { min-height: 32px; }
  .brand img, .custom-logo-link img { width: 184px; }
  .hero h1 { font-size: 64px; }
  .hero h2 { font-size: 29px; }
  .hero__subtitle { font-size: 15px; }
  .hero__tagline { font-size: 16px; padding-right: 45px; }
  .hero__media { min-height: 250px; }
  .hero__seal { width: 110px; }
  .hero__milk { width: 155px; }
  .value-badge { width: 84px; height: 84px; font-size: 12px; }
  .value-badge strong { font-size: 18px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card__title { font-size: 14px; }
  .benefit-box { grid-template-columns: 1fr; }
  .benefit + .benefit, .benefit:nth-child(4), .benefit:nth-child(5) { border-left: 0; border-top: 1px solid #e1e2e6; }
  .section-title { gap: 8px; font-size: 26px; }
  .section-title::before, .section-title::after { width: 28px; }
  .order-cta__inner { grid-template-columns: 1fr; text-align: center; }
  .order-number, .whatsapp-button { justify-self: center; font-size: 19px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { padding: 14px 0; display: grid; text-align: center; justify-content: center; }
}
