/*
Theme Name: Crockery Mumbai
Theme URI: https://crockerymumbai.com
Author: Crockery Mumbai
Description: Visual product catalogue theme (no cart or checkout). Add products with photos or videos, group them by category and brand, attach a downloadable catalogue to each brand, and get a floating WhatsApp enquiry button on every page.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: crockery-mumbai
Requires at least: 5.8
Requires PHP: 7.4
*/

/* =========================================================
   CROCKERY MUMBAI — STYLE SHEET
   Palette: porcelain white / ink / glaze teal / kiln brass / stone
   Type: Fraunces (display) + Manrope (text/UI)
   ========================================================= */

:root {
  --porcelain: #FFFFFF;
  --stone: #F6F4F1;
  --ink: #141311;
  --ink-soft: #56534C;
  --teal: #E2600A;
  --teal-deep: #141311;
  --brass: #C81E1E;
  --brass-light: #EF5B45;
  --line: rgba(20, 19, 17, 0.13);

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

::selection { background: var(--brass-light); color: var(--teal-deep); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--teal-deep);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.logo span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  display: inline-block;
  transform: translateY(-4px);
}

nav.main-nav {
  display: flex;
  gap: 30px;
}

nav.main-nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--teal-deep);
  border-color: var(--brass);
}

.header-cta {
  display: none;
}

@media (min-width: 720px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    background: var(--teal-deep);
    color: var(--porcelain);
    padding: 9px 18px;
    border-radius: var(--radius);
  }
  .header-cta:hover { background: var(--teal); }
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 0.85rem;
}

@media (max-width: 719px) {
  nav.main-nav { display: none; }
  nav.main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--porcelain);
    padding: 18px 32px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .menu-toggle { display: block; }
}

/* ---------- Hero (home) ---------- */

.hero {
  padding: 72px 0 56px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

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

.hero-eyebrow {
  font-size: 0.95rem;
  color: var(--brass);
  font-family: var(--serif);
  font-style: italic;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.hero p.lede {
  margin-top: 20px;
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: var(--porcelain);
}
.btn-primary:hover { background: var(--teal); }

.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border-color: var(--ink);
}
.btn-outline:hover { border-color: var(--teal-deep); }

.btn-brass {
  background: var(--brass);
  color: var(--porcelain);
}
.btn-brass:hover { background: var(--brass-light); }

/* Hero tile stack — offset "place setting" arrangement */
.hero-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-tile {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--stone);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.hero-tile:nth-child(2) { margin-top: 30px; }
.hero-tile:nth-child(3) { margin-top: -30px; }

.hero-tile .tile-label {
  font-family: var(--serif);
  color: var(--teal-deep);
  font-size: 1.05rem;
  position: relative;
  z-index: 2;
}

.hero-tile svg { position: absolute; inset: 0; margin: auto; width: 46%; opacity: 0.5; color: var(--teal); }

/* ---------- Brand strip ---------- */

.brand-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.brand-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.brand-strip strong { color: var(--teal-deep); font-family: var(--serif); }

/* ---------- Category grid (home) ---------- */

.section { padding: 72px 0; }
.section-stone { background: var(--stone); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); max-width: 16ch; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cat-card:hover { border-color: var(--brass); transform: translateY(-3px); }

.cat-card .icon {
  width: 42px;
  height: 42px;
  color: var(--teal);
}

.cat-card h3 { font-size: 1.25rem; }

.cat-card .sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: auto;
}

.cat-card .go {
  font-size: 0.9rem;
  color: var(--teal-deep);
  font-weight: 600;
}

/* ---------- Category page header ---------- */

.page-hero {
  padding: 52px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-hero .kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brass);
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

.page-hero .desc { margin-top: 16px; font-size: 1.05rem; max-width: 60ch; }

.page-hero-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 32px 0 8px;
}

.tab-btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-btn.active,
.tab-btn:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: var(--porcelain);
}

/* ---------- Product grid ---------- */

.product-section { padding: 40px 0 80px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 22px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--porcelain);
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  background: var(--stone);
  position: relative;
  overflow: hidden;
}

.product-media img,
.product-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--teal);
  text-align: center;
  padding: 12px;
}

.product-placeholder svg { width: 34px; height: 34px; opacity: 0.6; }
.product-placeholder span {
  font-size: 0.72rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.product-media .play-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(200, 30, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}
.product-media .play-badge svg { width: 14px; height: 14px; color: var(--porcelain); }

.product-info { padding: 14px 16px 18px; }

.product-info .brand-tag {
  font-size: 0.72rem;
  color: var(--brass);
  font-weight: 700;
}

.product-info h4 {
  font-size: 1rem;
  margin-top: 4px;
  font-weight: 600;
}

.product-info .enquire-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--teal-deep);
  border-bottom: 1px solid var(--brass);
}

/* ---------- Catalogue callout ---------- */

.catalog-callout {
  margin-top: 44px;
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: var(--porcelain);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.catalog-callout h3 { color: var(--porcelain); font-size: 1.3rem; }
.catalog-callout p { color: rgba(255, 255, 255, 0.78); margin-top: 6px; }

/* ---------- About / contact section ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--porcelain);
}

.contact-card dl {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  font-size: 0.95rem;
}

.contact-card dt { color: var(--ink-soft); }
.contact-card dd { margin: 0; color: var(--ink); }

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  background: var(--stone);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-grid h5 {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 700;
}

.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { font-size: 0.92rem; color: var(--ink); }
.footer-grid a:hover { color: var(--teal-deep); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Floating WhatsApp button ---------- */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1F8A5C;
  color: #fff;
  padding: 13px 20px 13px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 19, 17, 0.28);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(20, 19, 17, 0.34); }

.wa-float svg { width: 22px; height: 22px; flex-shrink: 0; }

.wa-float .wa-text { white-space: nowrap; }

@media (max-width: 560px) {
  .wa-float .wa-text { display: none; }
  .wa-float { padding: 14px; }
}

/* ---------- Utility ---------- */

.center-note {
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
  font-size: 0.95rem;
}

/* =========================================================
   WORDPRESS ADDITIONS
   ========================================================= */

[hidden] { display: none !important; }

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

.logo { text-decoration: none; }

.hero-tile { background-size: cover; background-position: center; }
.hero-tile.has-photo .tile-label {
  background: var(--porcelain);
  padding: 4px 10px;
  border-radius: var(--radius);
}

.cat-card .photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--stone) center / cover no-repeat;
  margin: -6px -2px 0;
}

.product-media a { display: block; width: 100%; height: 100%; }

.cm-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 48px 0;
}

.catalog-btn[hidden] { display: none !important; }

.entry-content { max-width: 70ch; padding: 48px 0 80px; }
.entry-content p { margin-bottom: 1em; }

.brand-strip .wrap { justify-content: flex-start; gap: 12px 36px; }
