/* ============================================================
   Nam Chan Ceramic Pottery Co., Ltd. — Brand Style Sheet
   ============================================================
   Palette:
     --clay:       #8B6F47
     --terra:      #C77D50
     --sand:       #D4A574
     --cream:      #FAF6F1
     --dark:       #2C2418
     --warm-white: #F5EDE3
   ============================================================ */

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

:root {
  --clay: #8B6F47;
  --terra: #C77D50;
  --sand: #D4A574;
  --cream: #FAF6F1;
  --dark: #2C2418;
  --warm-white: #F5EDE3;
  --shadow: 0 2px 16px rgba(44, 36, 24, .08);
  --radius: 8px;
  --font-heading: 'Georgia', 'Palatino Linotype', serif;
  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--terra); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay); }

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section-alt { background: var(--warm-white); }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--clay);
  margin-bottom: .4em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--clay);
  opacity: .75;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* ---- Top Bar ---- */
.topbar {
  background: var(--dark);
  color: var(--warm-white);
  font-size: .82rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--sand); }
.topbar a:hover { color: #fff; }

/* ---- Header / Nav ---- */
header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: .02em;
}
.logo-tagline {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--terra);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}
nav ul li a {
  display: block;
  padding: 8px 16px;
  font-size: .92rem;
  color: var(--dark);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--clay);
  color: var(--cream);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform .3s, opacity .3s;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--clay) 0%, var(--terra) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-content { flex: 1; min-width: 280px; }
.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.15rem;
  opacity: .9;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-img { flex: 1 1 380px; max-width: 520px; }
.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--cream);
  color: var(--clay);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--clay);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--clay);
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.feature-card {
  background: var(--cream);
  padding: 32px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .25s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  fill: var(--terra);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--clay);
  margin-bottom: .5em;
}
.feature-card p {
  font-size: .92rem;
  color: var(--dark);
  opacity: .8;
}

/* ---- Products Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(44,36,24,.12);
}
.product-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.product-info { padding: 18px 20px; }
.product-info h3 {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  color: var(--clay);
  margin-bottom: 4px;
}
.product-info .category {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--terra);
  margin-bottom: 8px;
}
.product-info p {
  font-size: .88rem;
  color: var(--dark);
  opacity: .7;
}

/* ---- Export Map ---- */
.export-section {
  background: var(--clay);
  color: var(--cream);
  text-align: center;
}
.export-section .section-title { color: var(--cream); }
.export-section .section-subtitle { color: var(--cream); opacity: .8; }

.export-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 2rem;
}
.export-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: .92rem;
  border: 1px solid rgba(255,255,255,.2);
}

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--terra);
  font-weight: 700;
}
.stat-label {
  font-size: .88rem;
  color: var(--dark);
  opacity: .7;
  margin-top: 4px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--terra), var(--clay));
  color: var(--cream);
  text-align: center;
  padding: 60px 24px;
}
.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: .5em;
}
.cta-banner p {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  opacity: .9;
}

/* ---- Footer ---- */
footer {
  background: var(--dark);
  color: var(--warm-white);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--sand);
  margin-bottom: .8em;
  font-size: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
  color: var(--warm-white);
  opacity: .7;
  font-size: .88rem;
}
.footer-col ul li a:hover { opacity: 1; }
.footer-col p {
  font-size: .88rem;
  opacity: .7;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .8rem;
  opacity: .5;
}

/* ---- About Section (inline) ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-img {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 400px;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  grid-row: 1 / 3;
}
.about-photo-secondary {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h3 {
  font-family: var(--font-heading);
  color: var(--clay);
  margin-bottom: .5em;
  font-size: 1.3rem;
}
.about-text p {
  margin-bottom: 1em;
  font-size: .95rem;
}

/* ---- Contact Section (inline) ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-card {
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-family: var(--font-heading);
  color: var(--clay);
  margin-bottom: .8em;
}
.contact-card p {
  font-size: .92rem;
  margin-bottom: .4em;
}
.contact-card strong { color: var(--clay); }

.map-placeholder {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--warm-white), var(--sand));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 32px;
  border: 1px solid var(--sand);
}

/* ---- Timeline ---- */
.timeline { margin-top: 2.5rem; }
.timeline-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-left: 3px solid var(--sand);
  padding-left: 20px;
  margin-left: 4px;
}
.timeline-year {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--terra);
  font-size: .95rem;
  min-width: 60px;
}
.timeline-item p {
  font-size: .9rem;
  color: var(--dark);
  opacity: .8;
  margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; padding: 48px 24px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-img { max-width: 100%; }
  .hero-image { height: 260px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 1.8rem; }
  nav ul { display: none; }
  nav ul.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand);
    padding: 12px 24px 16px;
    box-shadow: var(--shadow);
  }
  .hamburger { display: block; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-img {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
  }
  .about-photo { height: 240px; grid-row: auto; }
  .about-photo-secondary { height: 180px; }
  .header-inner { padding: 10px 16px; }
  .logo-name { font-size: 1.1rem; }
}

/* ---- Print ---- */
@media print {
  header, .hero, .cta-banner, footer { display: none; }
  body { color: #000; background: #fff; }
}
