/* ============================================================
   DE-GUSTATIO — Ars Culinaria Antiqua
   Roman Catering Theme
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --parchment:         #F3ECD9;
  --parchment-dark:    #E8DEC5;
  --parchment-darker:  #D5C9A8;
  --roman-red:         #7A1919;
  --roman-red-dark:    #551010;
  --roman-red-mid:     #8F2020;
  --roman-gold:        #C4922A;
  --roman-gold-light:  #D9AE50;
  --roman-gold-dark:   #8E6318;
  --text-dark:         #2A1A0A;
  --text-medium:       #5A3A1A;
  --text-light:        #8B6545;
  --border-gold:       #9B8450;
  --border-light:      #D5C9A8;
  --shadow:            rgba(42, 26, 10, 0.18);
  --shadow-soft:       rgba(42, 26, 10, 0.08);
}


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

html { scroll-behavior: smooth; }

body {
  background-color: var(--parchment);
  color: var(--text-dark);
  font-family: 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.8;
  padding-top: 0 !important; /* remove Bootstrap fixed-nav offset */
}


/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Gideon Roman', 'Palatino Linotype', Palatino, serif;
  color: var(--roman-red);
  font-weight: normal;
  line-height: 1.25;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.3em; }

a {
  color: var(--roman-red);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--roman-gold);
  text-decoration: underline;
}

strong { color: var(--text-medium); }
em { color: var(--text-medium); font-style: italic; }

blockquote {
  border-left: 4px solid var(--roman-gold);
  margin: 1.5em 0;
  padding: 0.5em 1.5em;
  color: var(--text-medium);
  font-style: italic;
  background: rgba(196, 146, 42, 0.06);
}


/* ── Ornamental Horizontal Rule ─────────────────────────────── */
hr {
  border: none;
  height: 24px;
  position: relative;
  margin: 2.5em 0;
  overflow: visible;
}
hr::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-gold) 20%,
    var(--roman-gold) 50%,
    var(--border-gold) 80%,
    transparent
  );
  transform: translateY(-50%);
}
hr::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--roman-gold);
  background: var(--parchment);
  padding: 0 0.6em;
  font-size: 0.85em;
  line-height: 1;
}


/* ── Site Header — Masthead ─────────────────────────────────── */
#site-header {
  background: linear-gradient(160deg, #1A0C06 0%, #2C1A0C 55%, #1A0C06 100%);
  position: relative;
}

/* Top mosaic band */
#site-header::before {
  content: '';
  display: block;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--roman-gold)      0px,
    var(--roman-gold)      8px,
    var(--roman-red-mid)   8px,
    var(--roman-red-mid)  16px,
    var(--roman-gold-dark) 16px,
    var(--roman-gold-dark) 24px
  );
}

.site-masthead {
  text-align: center;
  padding: 2.2rem 1rem 1.8rem;
}

.site-logo {
  font-family: 'Gideon Roman', serif;
  font-size: 3.8rem;
  color: var(--roman-gold);
  text-decoration: none;
  letter-spacing: 0.12em;
  display: block;
  line-height: 1;
  transition: color 0.2s;
}
.site-logo:hover, .site-logo:focus {
  color: var(--roman-gold-light);
  text-decoration: none;
}

.site-tagline {
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  font-style: italic;
  color: rgba(243, 236, 217, 0.55);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* Separator line below masthead */
.masthead-rule {
  width: 60%;
  max-width: 420px;
  margin: 1.2rem auto 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(196, 146, 42, 0.6),
    transparent
  );
}


/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  background: var(--roman-red-dark);
  border-bottom: 3px solid var(--roman-gold-dark);
}

.site-nav .nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.site-nav ul li {
  position: relative;
}

.site-nav ul li a {
  display: block;
  padding: 0.75rem 1.3rem;
  color: var(--parchment-dark);
  font-family: 'Gideon Roman', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.site-nav ul li a:hover,
.site-nav ul li a:focus {
  color: var(--roman-gold-light);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.site-nav ul li.active > a {
  color: var(--roman-gold);
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 2px solid var(--roman-gold);
}

/* Dropdown */
.site-nav ul li .dropdown-menu {
  display: none;
  background: #1A0C06;
  border: 1px solid var(--roman-gold-dark);
  border-top: 2px solid var(--roman-gold);
  border-radius: 0;
  padding: 0.4rem 0;
  min-width: 180px;
  box-shadow: 4px 4px 12px var(--shadow);
}
.site-nav ul li.open > .dropdown-menu,
.site-nav ul li.show > .dropdown-menu {
  display: block;
}
.site-nav ul li .dropdown-menu li a {
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(155, 132, 80, 0.2);
}
.site-nav ul li .dropdown-menu li:last-child a {
  border-bottom: none;
}

.nav-caret {
  font-size: 0.65em;
  margin-left: 0.3em;
  opacity: 0.7;
}

/* Mobile toggle button */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(196, 146, 42, 0.5);
  color: var(--parchment-dark);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 1.3rem;
  margin: 0.4rem;
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-toggle:hover {
  border-color: var(--roman-gold);
  color: var(--roman-gold);
}


/* ── Main Content ────────────────────────────────────────────── */
#main-content {
  min-height: 60vh;
  padding: 2.5rem 0 3.5rem;
}

/* Content wrapper — subtle inset on wide screens */
.content-area {
  padding: 0;
}

/* Page headline */
#headline {
  font-family: 'Gideon Roman', serif;
  font-size: 2.6rem;
  color: var(--roman-red);
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--roman-gold-dark);
  letter-spacing: 0.03em;
}

/* Edit link */
.edit-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.7rem;
  border-radius: 2px;
  letter-spacing: 0.05em;
}
.edit-link:hover {
  color: var(--roman-red);
  border-color: var(--roman-red);
  text-decoration: none;
}


/* ── Bootstrap Container Override ───────────────────────────── */
/* Keep Bootstrap grid but tighten max-width */
@media (min-width: 1200px) {
  .container { max-width: 980px; }
}


/* ── Bootstrap Row / Col Tweaks ─────────────────────────────── */
/* Column images */
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4,
.col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8 {
  margin-bottom: 1rem;
}


/* ── Images ─────────────────────────────────────────────────── */
img, .img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Content images get a framed look */
#content img, .content-area img {
  border: 2px solid var(--parchment-darker);
  box-shadow: 3px 3px 10px var(--shadow-soft);
}


/* ── Ingredient Table ────────────────────────────────────────── */
.table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 2rem;
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 0.97rem;
}

.table thead th {
  background: var(--roman-red);
  color: var(--parchment);
  font-family: 'Gideon Roman', serif;
  font-weight: normal;
  padding: 0.55rem 1rem;
  text-align: left;
  letter-spacing: 0.06em;
  border: none;
  font-size: 1rem;
}

.table tbody tr {
  border-bottom: 1px solid var(--parchment-darker);
  transition: background 0.15s;
}
.table tbody tr:nth-child(even) {
  background: rgba(213, 201, 168, 0.28);
}
.table tbody tr:hover {
  background: rgba(196, 146, 42, 0.1);
}

.table td {
  padding: 0.45rem 1rem;
  vertical-align: top;
  border-top: none;
  border-bottom: 1px solid var(--parchment-darker);
  color: var(--text-dark);
}

/* First column (amounts) — right-align and muted */
.table td:first-child {
  text-align: right;
  color: var(--text-medium);
  min-width: 3.5em;
}

/* Second column (units) — muted */
.table td:nth-child(2) {
  color: var(--text-medium);
  min-width: 4em;
}

/* Links in table */
.table a {
  color: var(--roman-red);
  border-bottom: 1px dotted var(--border-gold);
}
.table a:hover {
  color: var(--roman-gold-dark);
  border-bottom-color: var(--roman-gold);
  text-decoration: none;
}


/* ── Recipe List ─────────────────────────────────────────────── */
.recipe-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.recipe-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--parchment-darker);
}
.recipe-list li:last-child { border-bottom: none; }
.recipe-list a {
  font-family: 'Gideon Roman', serif;
  font-size: 1.05rem;
}


/* ── Photo Gallery ───────────────────────────────────────────── */
.my-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.my-gallery figure {
  margin: 0;
  flex: 1 1 180px;
  max-width: 240px;
  overflow: hidden;
  border: 2px solid var(--parchment-darker);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.my-gallery figure:hover {
  border-color: var(--roman-gold);
  box-shadow: 3px 3px 10px var(--shadow);
}
.my-gallery figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s, transform 0.2s;
}
.my-gallery figure:hover img {
  opacity: 0.88;
  transform: scale(1.03);
}


/* ── Footer ──────────────────────────────────────────────────── */
#site-footer {
  background: linear-gradient(160deg, #1A0C06 0%, #2C1A0C 55%, #1A0C06 100%);
  color: rgba(243, 236, 217, 0.55);
  text-align: center;
  padding: 2.2rem 1rem 2.8rem;
  margin-top: 2rem;
  border-top: 3px solid var(--roman-gold-dark);
  position: relative;
  font-size: 0.88rem;
}

/* Bottom mosaic band */
#site-footer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(
    90deg,
    var(--roman-gold)      0px,
    var(--roman-gold)      8px,
    var(--roman-red-mid)   8px,
    var(--roman-red-mid)  16px,
    var(--roman-gold-dark) 16px,
    var(--roman-gold-dark) 24px
  );
}

.footer-brand {
  font-family: 'Gideon Roman', serif;
  font-size: 1.8rem;
  color: var(--roman-gold);
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.1em;
}

.footer-ornament {
  color: var(--roman-gold-dark);
  letter-spacing: 0.4em;
  margin: 0.6rem 0;
  display: block;
}

#site-footer a {
  color: var(--roman-gold-light);
}
#site-footer a:hover {
  color: var(--roman-gold);
}

#site-footer p {
  margin: 0.3rem 0;
}


/* ── Bootstrap Navbar Suppression ───────────────────────────── */
/* We use our own header, hide Bootstrap's navbar */
.navbar { display: none !important; }


/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-logo       { font-size: 2.6rem; }
  .site-masthead   { padding: 1.5rem 1rem 1.2rem; }
  #headline        { font-size: 2rem; }
  h1               { font-size: 2rem; }
  h2               { font-size: 1.65rem; }

  .nav-toggle { display: block; }

  .site-nav ul {
    flex-direction: column;
    display: none;
    width: 100%;
    border-top: 1px solid rgba(155, 132, 80, 0.3);
  }
  .site-nav ul.open {
    display: flex;
  }
  .site-nav ul li a {
    padding: 0.65rem 1.2rem;
    border-bottom: 1px solid rgba(155, 132, 80, 0.15);
  }
  .site-nav ul li .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.2);
    padding: 0;
  }
  .site-nav ul li .dropdown-menu li a {
    padding-left: 2rem;
    font-size: 0.9rem;
  }

  .my-gallery figure {
    flex: 1 1 140px;
    max-width: 200px;
  }
  .my-gallery figure img {
    height: 130px;
  }
}

@media (max-width: 480px) {
  .site-logo     { font-size: 2rem; }
  .site-masthead { padding: 1.2rem 0.8rem 1rem; }
  .site-tagline  { letter-spacing: 0.1em; font-size: 0.75rem; }

  #headline { font-size: 1.75rem; }

  .table td, .table thead th { padding: 0.4rem 0.6rem; font-size: 0.88rem; }
}
