/* Base CSS reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* ---------- Brand Palette ---------- */
:root{
  --charcoal:   #2a2a2a; /* primary text */
  --champagne:  #f8f3e9; /* soft background */
  --champagne2: #f2ece4; /* header/footer */
  --rosewood:   #65000b; /* secondary accent */
  --green:      #264d3b; /* CTA / hover accent */
  --text-muted: #565656;
  --hairline:   #e8e1d9;
  --card-border:#e6e0da;

  /* Type scale */
  --fs-xxl: 2.25rem; /* h1 desktop */
  --fs-xl:  1.5rem;  /* h2 */
  --fs-lg:  1.125rem;/* h3 / lead */
  --fs-md:  1rem;    /* body */
  --fs-sm:  0.9375rem; /* small */

  /* Layout */
  --container: 1100px;  /* site max width */
  --gutter: 1.25rem;    /* side padding */
}

/* ---------- Layout ---------- */
body{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--charcoal);
  background: #fff;
}

/* Apply container without HTML changes */
header > nav,
main,
footer {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Header + Nav */
header{
  background: var(--champagne2);
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0; /* vertical rhythm; horizontal handled by container */
}
nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul{ display: flex; gap: 1rem; }
nav a{ color: var(--charcoal); font-weight: 600; }
nav a[aria-current="page"]{ text-decoration: underline; text-underline-offset: 2px; }

/* Wordmark (logo) */
nav .logo{
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant: small-caps;
  line-height: 1;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 4px;
}
nav .logo::after{
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  background: var(--rosewood);
  margin-top: 6px;
  border-radius: 2px;
  opacity: 0.9;
}

/* Main */
main{ flex: 1; padding-top: 2rem; padding-bottom: 2rem; }
main p{ max-width: 70ch; }

/* Headings */
h1, h2, h3 { line-height: 1.25; letter-spacing: 0.1px; }
h1{ font-size: var(--fs-xxl); margin-bottom: 0.75rem; }
h2{ font-size: var(--fs-xl);  margin: 1rem 0 0.5rem; }
h3{ font-size: var(--fs-lg);  margin-top: 0.5rem; }

small, .muted { font-size: var(--fs-sm); color: var(--text-muted); }

/* Hero */
#hero{
  background: var(--champagne);
  padding: 3rem 2rem;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid var(--hairline);
  border-radius: 12px;
}
#hero h1{ color: var(--charcoal); }
#hero p{ margin: 0.75rem auto 0; color: var(--text-muted); font-size: var(--fs-lg); }
#hero a{
  color: var(--green);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Section headings with subtle rosewood accent */
main h2{
  display: inline-block;
  border-bottom: 2px solid var(--rosewood);
  padding-bottom: 0.25rem;
}

/* Featured grid */
.grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.card{
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.card h3{ color: var(--charcoal); }
.card p{ color: var(--text-muted); }
.thumb{
  width: 100%; height: 140px; border-radius: 8px;
  background: linear-gradient(135deg, #ece7df, #faf7f2);
  border: 1px solid var(--hairline);
}

/* Categories (pills) */
.categories{
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem;
}
.categories li a{
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: 20px;
  background: #fff;
  font-size: var(--fs-sm);
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.categories li a:hover{
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

/* Footer */
footer{
  background: var(--champagne2);
  padding-top: 1rem;   /* vertical; horizontal via container */
  padding-bottom: 1.25rem;
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  border-top: 1px solid var(--hairline);
}
footer a{
  color: var(--charcoal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a:hover{ color: var(--green); }

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: transform 0.05s ease, background 0.2s ease;
  text-decoration: none;
}
.btn-primary:hover { background: var(--rosewood); }
.btn-primary:active { transform: translateY(1px); }

/* Skip link */
.skip-link{
  position: absolute; top: -40px; left: 0;
  background: var(--green); color: #fff;
  padding: 0.5rem 1rem; z-index: 100; transition: top 0.2s ease;
}
.skip-link:focus{ top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px){
  html { font-size: 15.5px; }
  nav{ flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  nav ul{ flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  main{ padding-top: 1rem; padding-bottom: 1rem; }
  #hero{ padding: 2.25rem 1.25rem; }
  .grid{ grid-template-columns: 1fr; gap: 1rem; }
}
@media (min-width: 641px) and (max-width: 1024px){
  .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Forms ---------- */
form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
}

label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--charcoal);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: var(--fs-md);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: #fff;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(38, 77, 59, 0.15);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

button[type="submit"],
input[type="submit"] {
  background: var(--green);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--rosewood);
}
/* ---------- Editorial rhythm tweaks ---------- */
main section { 
  margin-bottom: 2.25rem;           /* clearer separation between sections */
}

main section:last-of-type {
  margin-bottom: 0;                  /* no extra gap at the end */
}

/* Tighter heading spacing within sections */
main section > h2 {
  margin-top: 0.25rem;               /* gentle lead-in after hero/cards */
  margin-bottom: 0.5rem;
}

/* Optional lead paragraph style (use by adding class="muted" or not needed) */
.lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Slightly larger hero title on big screens for luxe feel */
@media (min-width: 1024px) {
  #hero h1 { font-size: calc(var(--fs-xxl) * 1.1); }
}
/* ---------- Accessible focus states ---------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-primary:focus-visible {
  outline: 3px solid var(--rosewood);
  outline-offset: 2px;
}
/* ---------- Hero: responsive background, image-ready ---------- */
/* You can later set --hero-image: url('hero.jpg') to use a real photo */
:root {
  --hero-image: none; /* default: no photo */
}

#hero {
  /* Layer 1: soft champagne base gradient
     Layer 2: optional brand photo (cover)
     Layer 3: subtle top vignette for contrast */
  background-image:
    radial-gradient(150% 100% at 50% 0%, var(--champagne) 0%, #ffffff 65%),
    var(--hero-image),
    linear-gradient(to bottom, rgba(0,0,0,0.06), rgba(0,0,0,0));
  background-size: cover, cover, 100% 100%;
  background-position: center, center, center;
  background-repeat: no-repeat;

  min-height: 320px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

#hero .btn-primary {
  margin-top: 0.75rem;
}

@media (min-width: 1024px) {
  #hero {
    min-height: 420px;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
/* ---------- Card hover micro-interaction ---------- */
.card {
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--hairline);
}

.card .thumb {
  transition: filter 0.15s ease;
}

.card:hover .thumb {
  filter: brightness(0.98) contrast(1.02);
}
/* ---------- Link hover refinement ---------- */
a {
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--rosewood);
  text-underline-offset: 2px;
}
/* ---------- Footer styling ---------- */
footer {
  background: var(--charcoal);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: var(--fs-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
}

footer a {
  color: var(--champagne);
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* ---------- Secondary button ---------- */
.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--green);
  color: #fff;
}
/* ---------- Section dividers ---------- */
.section-divider {
  border-top: 1px solid var(--hairline);
  margin: 2.5rem auto;
  max-width: 900px;
}
/* ---------- Highlighted text ---------- */
.highlight {
  background-color: var(--champagne);
  padding: 0.15em 0.35em;
  border-radius: 4px;
}
/* ---------- Muted text ---------- */
.muted {
  color: var(--text-muted);
}
/* ---------- Input fields ---------- */
input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: var(--fs-base);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.1);
  outline: none;
}
/* ---------- Form labels ---------- */
label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: var(--charcoal);
}
/* ---------- Success message ---------- */
.success-message {
  background-color: rgba(0, 128, 0, 0.08);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}
/* ---------- Error message ---------- */
.error-message {
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid #dc3545;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 500;
}
/* ---------- Table styling ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: var(--fs-base);
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

th {
  background-color: var(--champagne);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
/* ---------- Blockquote styling ---------- */
blockquote {
  border-left: 4px solid var(--green);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
  background-color: rgba(0, 128, 0, 0.03);
}
/* ---------- Image styling ---------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
/* ---------- Card component ---------- */
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
/* ---------- Navigation bar ---------- */
nav {
  background: var(--charcoal);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--green);
}
/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* ---------- Hero section ---------- */
.hero {
  padding: 4rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, var(--charcoal), var(--rosewood));
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}
/* ---------- Buttons ---------- */
button,
.btn {
  background-color: var(--green);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

button:hover,
.btn:hover {
  background-color: #006400;
  transform: translateY(-1px);
}

button:disabled,
.btn:disabled {
  background-color: var(--hairline);
  cursor: not-allowed;
}
/* ---------- Secondary buttons ---------- */
.btn-secondary {
  background-color: var(--champagne);
  color: var(--charcoal);
}

.btn-secondary:hover {
  background-color: #e5d4b6;
}
/* ---------- Tags / Pills ---------- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 999px;
  background-color: var(--champagne);
  color: var(--charcoal);
}

.tag.green {
  background-color: var(--green);
  color: #fff;
}
/* ---------- Input fields ---------- */
input,
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  font-size: var(--fs-base);
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.15);
  outline: none;
}
/* ---------- Form labels ---------- */
label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--charcoal);
}
/* ---------- Alert boxes ---------- */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: rgba(0, 128, 0, 0.08);
  color: var(--green);
  border: 1px solid var(--green);
}

.alert-error {
  background-color: rgba(220, 53, 69, 0.08);
  color: #dc3545;
  border: 1px solid #dc3545;
}
/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th,
td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

th {
  background-color: var(--champagne);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(0, 128, 0, 0.03);
}
/* ---------- Modals ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}
/* ---------- Navigation Bar ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--charcoal);
  padding: 0.75rem 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.2rem;
  font-weight: 500;
}

nav a:hover {
  color: var(--green);
}
/* ---------- Footer ---------- */
footer {
  background-color: var(--charcoal);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--green);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--champagne);
  color: var(--charcoal);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
/* ---------- Grid Utility ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
/* ---------- Button Groups ---------- */
.btn-group {
  display: inline-flex;
  gap: 0.5rem;
}

.btn-group .btn {
  margin: 0;
}
/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
}

.badge-green {
  background-color: var(--green);
  color: #fff;
}

.badge-charcoal {
  background-color: var(--charcoal);
  color: #fff;
}

.badge-champagne {
  background-color: var(--champagne);
  color: var(--charcoal);
}
/* ---------- Form input focus effect ---------- */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 128, 0, 0.2);
}
/* ---------- Image hover zoom ---------- */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.3s ease;
}

.img-zoom:hover img {
  transform: scale(1.05);
}
/* ---------- Alerts ---------- */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(0, 128, 0, 0.1);
  border: 1px solid var(--green);
  color: var(--green);
}

.alert-error {
  background-color: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
  color: red;
}

.alert-warning {
  background-color: rgba(255, 165, 0, 0.15);
  border: 1px solid orange;
  color: orange;
}
/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

th {
  background-color: var(--champagne);
  font-weight: 600;
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
/* ---------- Modal ---------- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--charcoal);
}
/* ---------- Cards ---------- */
.card {
  background-color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.card-text {
  font-size: 0.95rem;
  color: #555;
}
/* ---------- Footer ---------- */
footer {
  background-color: var(--charcoal);
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--champagne);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--champagne);
  color: var(--charcoal);
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}
/* ---------- Navigation Bar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--charcoal);
  padding: 1rem 2rem;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
}

.navbar a:hover {
  color: var(--champagne);
}
/* ---------- Button Hover Transition ---------- */
button, .btn {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
}
/* ---------- Section Spacing Utility ---------- */
.section {
  padding: 4rem 2rem;
}

.section-sm {
  padding: 2rem 1rem;
}
/* ---------- Forms ---------- */
form {
  max-width: 500px;
  margin: 0 auto;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}

button[type="submit"] {
  background-color: var(--charcoal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: var(--champagne);
  color: var(--charcoal);
}
/* ---------- Alerts ---------- */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

th, td {
  padding: 0.75rem;
  border: 1px solid var(--hairline);
  text-align: left;
}

th {
  background-color: var(--charcoal);
  color: #fff;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}
/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 12px;
}

.badge-success {
  background-color: #28a745;
  color: #fff;
}

.badge-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge-danger {
  background-color: #dc3545;
  color: #fff;
}
/* ---------- Modals ---------- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
/* ---------- Cards ---------- */
.card {
  background-color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: auto;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 1rem;
  color: #555;
}
/* ---------- Grid Layout Utility ---------- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* ---------- Navigation Bar ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--charcoal);
  color: #fff;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 500;
}

.navbar a:hover {
  color: var(--champagne);
}
/* ---------- Footer ---------- */
.footer {
  background-color: var(--charcoal);
  color: #fff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--champagne);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}
/* ---------- Button Groups ---------- */
.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.btn-group .btn + .btn {
  margin-left: -1px;
}
/* ---------- Forms ---------- */
form {
  max-width: 600px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--champagne);
  box-shadow: 0 0 0 3px rgba(255, 221, 179, 0.4);
}

button {
  cursor: pointer;
}
/* ---------- Alerts ---------- */
.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* ---------- Tables ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

th, td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

th {
  background-color: var(--charcoal);
  color: #fff;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

tr:hover {
  background-color: #f1f1f1;
}
/* ---------- Modals ---------- */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-close {
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}
/* ---------- Cards ---------- */
.card {
  background-color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  display: block;
}

.card-body {
  padding: 1rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-text {
  font-size: 1rem;
  color: var(--text-muted);
}
