/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #e3d2b0;
  color: #211b17;
  text-shadow: none;
}

::selection {
  background: #e3d2b0;
  color: #211b17;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles – Chef Profile Website
   ========================================================================== */

/* ---- CSS Variables ---- */
:root {
  /* Old, rich palette: parchment, antique gold, deep wine, espresso */
  --color-bg: #f5efe2;
  --color-dark: #211b17;
  --color-dark-alt: #2e2620;
  --color-wine: #5e1f2d;
  --color-wine-deep: #461420;
  --color-gold: #b08d57;
  --color-gold-light: #caa869;
  --color-text: #3b332b;
  --color-text-muted: #877a68;
  --color-white: #fdfbf6;
  --color-surface: #efe7d6;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --radius: 6px;
  --shadow: 0 6px 26px rgba(33, 27, 23, 0.14);
  --shadow-hover: 0 12px 40px rgba(33, 27, 23, 0.24);
  --transition: 0.3s ease;
  --container-width: 1180px;
  --section-padding: 96px 0;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 15% 12%, rgba(176, 141, 87, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(94, 31, 45, 0.06) 0%, transparent 45%),
    linear-gradient(160deg, #f6f0e3 0%, #ece2cf 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover,
a:focus-visible {
  color: var(--color-gold-light);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.18;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin-top: 0;
}

p { margin-top: 0; }

address { font-style: normal; }

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Sections ---- */
.section {
  padding: var(--section-padding);
  position: relative;
}
.section--dark {
  background-color: var(--color-dark);
  background-image:
    radial-gradient(circle at 80% 10%, rgba(176, 141, 87, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(94, 31, 45, 0.12) 0%, transparent 45%);
  color: rgba(253, 251, 246, 0.85);
}

/* Dishes section – elegant photographic background */
.dishes {
  position: relative;
  background-color: var(--color-dark);
  background-image:
    linear-gradient(rgba(28, 22, 18, 0.92), rgba(28, 22, 18, 0.95)),
    url('../img/IMG_1568.JPEG');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
/* Soft gold glow accents layered above the photo */
.dishes::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(176, 141, 87, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 12% 92%, rgba(94, 31, 45, 0.14) 0%, transparent 46%);
}
/* Keep section content above the decorative overlay */
.dishes > .container { position: relative; z-index: 1; }

/* Elegant hairline divider accent between light sections */
.section + .section:not(.section--dark)::before,
.section--dark + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.7;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
}
.section-label--light { color: var(--color-gold-light); }

.section--dark h2 { color: var(--color-white); }

.section-title--light { color: var(--color-white); }

.section-intro {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 48px;
}
.section--dark .section-intro { color: rgba(255,255,255,0.6); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-2px);
}
.btn--full { width: 100%; text-align: center; }

/* ======================================================================
   NAVBAR
   ====================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(33, 27, 23, 0.96);
  border-bottom: 1px solid rgba(176, 141, 87, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.navbar {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-image {
  display: block;
  height: 52px;
  width: auto;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
}
.nav-menu li a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--transition);
}
.nav-menu li a:hover,
.nav-menu li a:focus-visible {
  color: var(--color-gold-light);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-dark);
  background-image: url('../img/citrus_cake.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(33, 27, 23, 0.84) 0%, rgba(70, 20, 32, 0.62) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 760px;
}
.hero-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--color-white);
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-description {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-logo {
  display: block;
  margin: 24px auto 0;
  height: 120px;
  width: auto;
  max-width: min(220px, 55vw);
}

/* ======================================================================
   ABOUT
   ====================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image-wrapper {
  position: relative;
}
.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--color-gold);
  border-radius: var(--radius);
  z-index: 0;
}
.about-img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}
.about-text h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
  color: var(--color-dark-alt);
}
.about-text p { color: var(--color-text); margin-bottom: 16px; }

.profile-list {
  margin: 0 0 18px 18px;
  padding: 0;
}
.profile-list li {
  margin-bottom: 8px;
  color: var(--color-text);
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}
.about-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-surface);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-dark);
}
.highlight-icon { font-size: 1.2rem; }

/* ======================================================================
   DISHES GALLERY
   ====================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(200, 151, 42, 0.18);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 45%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200, 151, 42, 0.5);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after { opacity: 1; }

/* ======================================================================
   CONTACT
   ====================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.contact-info .contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-icon { font-size: 1.4rem; margin-top: 2px; flex-shrink: 0; }
.contact-item strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.contact-item p { margin: 0; color: var(--color-text-muted); font-size: 0.95rem; }
.contact-item a { color: var(--color-gold); }
.contact-item a:hover { color: var(--color-gold-light); }

/* Social */
.social-links {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-dark);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover,
.social-link:focus-visible {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-3px);
  text-decoration: none;
}

/* Form */
.contact-form {
  position: relative;
  background: linear-gradient(165deg, #fdfbf6 0%, #efe7d6 100%);
  padding: 44px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(176, 141, 87, 0.18);
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-wine), var(--color-gold), var(--color-wine));
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.form-group label span { color: var(--color-gold); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccbfa6;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.18);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23877a68'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  cursor: pointer;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.4em;
  color: var(--color-gold);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  text-align: center;
}
.form-note::before {
  content: '⏱ ';
  color: var(--color-gold);
}

/* ======================================================================
   FOOTER
   ====================================================================== */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255,255,255,0.5);
  padding: 40px 0;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-white);
  margin: 0;
}
.footer-copy { margin: 0; font-size: 0.85rem; }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrapper::before { display: none; }
  .about-image-wrapper {
    max-width: 440px;
    margin: 0 auto;
  }
  .about-img {
    aspect-ratio: 4 / 5;
    object-position: top center;
  }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 600px) {
  :root { --section-padding: 64px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-image-wrapper { max-width: 360px; }
  .about-img { aspect-ratio: 3 / 4; }
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    background: rgba(33, 27, 23, 0.98);
    padding: 16px 24px 24px;
    gap: 0;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a { display: block; padding: 12px 0; font-size: 1rem; }
  .contact-form { padding: 28px 20px; }
  .hero { background-attachment: scroll; }
  .dishes { background-attachment: scroll; }
}

/* ======================================================================
   SCROLL-REVEAL ANIMATION
   ====================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger gallery items */
.gallery .gallery-item:nth-child(4n+2) { transition-delay: 0.06s; }
.gallery .gallery-item:nth-child(4n+3) { transition-delay: 0.12s; }
.gallery .gallery-item:nth-child(4n+4) { transition-delay: 0.18s; }

/* ======================================================================
   FOCUS / ACCESSIBILITY
   ====================================================================== */
:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* ======================================================================
   PRINT STYLES (keep from boilerplate)
   ====================================================================== */
@media print {
  .site-header, .hero-overlay, .nav-toggle, .contact-form, .social-links { display: none !important; }
  .hero { min-height: auto; background-attachment: scroll; }
  body { color: #000; background: #fff; }
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

