/* ============================================================
   CB KITCHEN — Base & Reset Styles
   Modern reset, typography, containers, utilities
   ============================================================ */


/* --------------------------------------------------------
   MODERN CSS RESET
   -------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

ul,
ol {
  list-style: none;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}


/* --------------------------------------------------------
   SELECTION
   -------------------------------------------------------- */

::selection {
  background-color: var(--gold);
  color: var(--bg-primary);
}

::-moz-selection {
  background-color: var(--gold);
  color: var(--bg-primary);
}


/* --------------------------------------------------------
   CUSTOM SCROLLBAR
   -------------------------------------------------------- */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-primary);
}


/* --------------------------------------------------------
   BASE TYPOGRAPHY
   -------------------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text-primary);
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: var(--ls-tight);
}

h2 {
  font-size: var(--fs-3xl);
}

h3 {
  font-size: var(--fs-2xl);
}

h4 {
  font-size: var(--fs-xl);
}

h5 {
  font-size: var(--fs-lg);
}

h6 {
  font-size: var(--fs-md);
}

p {
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

strong,
b {
  font-weight: 600;
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--fs-sm);
}


/* --------------------------------------------------------
   BASE LINK STYLES
   -------------------------------------------------------- */

a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* --------------------------------------------------------
   IMAGE DEFAULTS
   -------------------------------------------------------- */

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


/* --------------------------------------------------------
   FOCUS STYLES (Accessibility)
   -------------------------------------------------------- */

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

:focus:not(:focus-visible) {
  outline: none;
}


/* --------------------------------------------------------
   CONTAINER
   -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container-2xl);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xl);
  }
}

@media (min-width: 1200px) {
  .container {
    padding-inline: var(--space-2xl);
  }
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }
.container--xl { max-width: var(--container-xl); }


/* --------------------------------------------------------
   SECTION PADDING
   -------------------------------------------------------- */

.section-padding {
  padding-block: var(--space-3xl);
}

@media (min-width: 768px) {
  .section-padding {
    padding-block: var(--space-4xl);
  }
}

@media (min-width: 1200px) {
  .section-padding {
    padding-block: var(--space-5xl);
  }
}


/* --------------------------------------------------------
   SECTION HEADER (Shared pattern)
   -------------------------------------------------------- */

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: var(--space-3xl);
  }
}

.section-header__accent {
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-full);
}

.section-header__title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .section-header__title {
    font-size: var(--fs-3xl);
  }
}

.section-header__subtitle {
  color: var(--text-secondary);
  font-size: var(--fs-md);
  max-width: 600px;
  margin-inline: auto;
}


/* --------------------------------------------------------
   UTILITY CLASSES
   -------------------------------------------------------- */

/* Text Colors */
.text-gold {
  color: var(--gold);
}

.text-primary {
  color: var(--text-primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

/* Text Gradient */
.text-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Gold Underline Decoration */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.gold-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Display */
.hidden { display: none; }
.block  { display: block; }
.flex   { display: flex; }
.grid   { display: grid; }
