/* ============================================================
   Richwood Official Website — Brand Theme
   Inspired by Paw Inc. (paw-inc.jp): clean, modern, professional
   ============================================================ */

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Palette */
  --rw-primary:        #1a2e1a;   /* Deep forest green */
  --rw-primary-light:  #2d4a2d;
  --rw-secondary:      #8b6914;   /* Warm wheat gold */
  --rw-accent:         #c8973a;   /* Rich amber */
  --rw-cream:          #faf7f2;   /* Warm off-white */
  --rw-warm-gray:      #f4f1ec;
  --rw-text:           #1e1e1e;
  --rw-text-muted:     #6b6b6b;
  --rw-border:         #e0dbd2;

  /* Semantic */
  --rw-success:  #2e7d32;
  --rw-danger:   #c62828;
  --rw-warning:  #e65100;

  /* Typography */
  --font-sans:   'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-serif:  'Georgia', 'Times New Roman', serif;

  /* Spacing */
  --section-py:  5rem;
  --section-py-sm: 3rem;

  /* Transitions */
  --transition: 0.3s ease;

  /* Shadows */
  --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.08);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 12px 40px rgba(0, 0, 0, 0.14);

  /* Border radius */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--rw-text);
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* Google Fonts import fallback — add to <head> for production */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); */

/* ── Links ──────────────────────────────────────────────────── */
a {
  color: var(--rw-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rw-accent); }

/* ── Headings ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--rw-primary);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

/* ── Section Utilities ──────────────────────────────────────── */
.section {
  padding: var(--section-py) 0;
}
.section-sm {
  padding: var(--section-py-sm) 0;
}
.section-bg-cream {
  background-color: var(--rw-cream);
}
.section-bg-warm {
  background-color: var(--rw-warm-gray);
}
.section-bg-primary {
  background-color: var(--rw-primary);
  color: #fff;
}
.section-bg-primary h1,
.section-bg-primary h2,
.section-bg-primary h3 { color: #fff; }

/* ── Section Headers ────────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--rw-primary);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--rw-text-muted);
  max-width: 600px;
}
.section-header-center {
  text-align: center;
}
.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ── Divider ────────────────────────────────────────────────── */
.rw-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--rw-accent), var(--rw-secondary));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}
.rw-divider-center { margin-left: auto; margin-right: auto; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-rw {
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rw-border);
  padding: 0;
  transition: box-shadow var(--transition);
}
.navbar-rw.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar-rw .container-xl {
  height: 72px;
  display: flex;
  align-items: center;
}

/* Brand */
.navbar-brand-rw {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rw-primary) !important;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.navbar-brand-rw .brand-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rw-accent);
}

/* Nav Links */
.navbar-nav-rw {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav-rw .nav-item .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rw-text-muted);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background-color var(--transition);
}
.navbar-nav-rw .nav-item .nav-link:hover,
.navbar-nav-rw .nav-item .nav-link.active {
  color: var(--rw-primary);
  background-color: var(--rw-warm-gray);
}

/* CTA nav button */
.btn-nav-cta {
  background-color: var(--rw-primary);
  color: #fff !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
}
.btn-nav-cta:hover {
  background-color: var(--rw-primary-light) !important;
  color: #fff !important;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--rw-primary) 0%, #0d1f0d 60%, #1a2e1a 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rw-accent);
  margin-bottom: 1.25rem;
}
.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: var(--rw-accent);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.hero-title .highlight {
  color: var(--rw-accent);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Hero stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2.5rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 3rem;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--rw-accent);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-rw-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--rw-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-rw-primary:hover {
  background-color: var(--rw-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 151, 58, 0.35);
}
.btn-rw-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-rw-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
  color: #fff;
}
.btn-rw-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--rw-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-rw-dark:hover {
  background-color: var(--rw-primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Cards ──────────────────────────────────────────────────── */
.rw-card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--rw-border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.rw-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.rw-card-body {
  padding: 1.75rem;
}
.rw-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Feature icon card */
.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--rw-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--rw-primary), var(--rw-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--rw-accent);
  font-size: 1.5rem;
}

/* Product card */
.product-card { cursor: pointer; }
.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
}
.product-card .product-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--rw-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Client Logo strip ──────────────────────────────────────── */
.client-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3rem;
}
.client-logo-item {
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
}
.client-logo-item:hover {
  opacity: 1;
  filter: none;
}
.client-logo-item img { height: 36px; width: auto; }

/* Client name placeholder (if no logo image) */
.client-name-badge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rw-text-muted);
  letter-spacing: 0.04em;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--rw-border);
  border-radius: 30px;
  transition: all var(--transition);
}
.client-name-badge:hover {
  color: var(--rw-primary);
  border-color: var(--rw-primary);
}

/* ── Process Steps ──────────────────────────────────────────── */
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.process-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rw-primary), var(--rw-primary-light));
  color: var(--rw-accent);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Certification Badge ────────────────────────────────────── */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--rw-border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition);
}
.cert-badge:hover { box-shadow: var(--shadow-md); }
.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--rw-warm-gray);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cert-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rw-primary);
  line-height: 1.2;
}
.cert-org {
  font-size: 0.78rem;
  color: var(--rw-text-muted);
}

/* ── Page Hero (Inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--rw-primary) 0%, #0f200f 100%);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -5%;
  top: -30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,151,58,0.12) 0%, transparent 70%);
}
.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
}

/* Breadcrumb */
.breadcrumb-rw {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.breadcrumb-rw a { color: rgba(255,255,255,0.6); }
.breadcrumb-rw a:hover { color: var(--rw-accent); }
.breadcrumb-rw .sep { color: rgba(255,255,255,0.3); }
.breadcrumb-rw .current { color: var(--rw-accent); }

/* ── Contact Form ───────────────────────────────────────────── */
.rw-form .form-control,
.rw-form .form-select {
  border: 1.5px solid var(--rw-border);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  color: var(--rw-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rw-form .form-control:focus,
.rw-form .form-select:focus {
  border-color: var(--rw-accent);
  box-shadow: 0 0 0 3px rgba(200, 151, 58, 0.15);
  outline: none;
}
.rw-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--rw-primary);
  margin-bottom: 0.5rem;
}
.rw-form textarea.form-control { min-height: 140px; resize: vertical; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer-rw {
  background-color: var(--rw-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 2rem;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rw-accent);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--rw-accent); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-contact-item i {
  color: var(--rw-accent);
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Alert / Flash messages ─────────────────────────────────── */
.alert-rw {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-rw-success {
  background: #e8f5e9;
  color: #1b5e20;
  border-left: 4px solid var(--rw-success);
}
.alert-rw-danger {
  background: #fce4ec;
  color: #880e4f;
  border-left: 4px solid var(--rw-danger);
}

/* ── Misc Utilities ─────────────────────────────────────────── */
.text-accent   { color: var(--rw-accent) !important; }
.text-primary-rw { color: var(--rw-primary) !important; }
.bg-cream      { background-color: var(--rw-cream) !important; }
.fw-800        { font-weight: 800 !important; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder visuals (when no real images) */
.img-placeholder {
  background: linear-gradient(135deg, #e8ede8 0%, #d4ddd4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rw-text-muted);
  font-size: 2.5rem;
}
