/* --
  Adrianna Michelle Pedron
  CIS 1440 Project 1
  Website build for Sincerely's Kitchen
-- */

/* CSS Variables */
:root {
  --bg: #EFDCCF;
  --panel: #FFFFFF;
  --text: #3C2415;
  --muted: #6F5D4D;
  --accent: #E85C2B;
  --accent-2: #D68A54;
  --border: #3C2415;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(60, 36, 21, .12);
}

/* Global styling*/
* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

/* Headings */
h1, h2, h3 {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 .5rem 0;
  color: var(--text);
}

/* Responsive header sizing */
h1 { font-size: clamp(2.0rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
a:focus {
  outline: 3px solid rgba(232, 92, 43, .35);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* brand group */
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.brand-name {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1;
  margin: 0;
}

.tagline {
  margin: .25rem 0 0 0;
  color: var(--muted);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(.9rem, .9vw, 1rem);
}

/* Logo */
.logo {
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  flex: 0 0 auto;
}

/* navigator */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}
.main-nav a {
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: clamp(.95rem, 1vw, 1.05rem);
  line-height: 1;
}
.main-nav a:hover {
  background: var(--panel);
  border-color: var(--border);
}
.main-nav a.active {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* Header responsiveness */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: .5rem;
  }
  .brand { gap: .5rem; }
  .main-nav {
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Banner/Hero section*/
.hero {
  position: relative;
  border-bottom: none;
  display: flex;
  align-items: center;     
  justify-content: center;  
  text-align: center;
  height: 42vh;
}
.hero img {
  position: absolute;
  inset: 0;         
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.25) contrast(0.85);
  opacity: 0.75;
  z-index: 0;     
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
  color: var(--text);
}
.hero h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
.hero p  {
  margin: .5rem auto 1rem;
  max-width: 60ch;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn:focus {
  outline: 3px solid rgba(232, 92, 43, .35);
  outline-offset: 3px;
}

/* Content Wrapper*/
#content { padding-bottom: 2rem; }

.content-narrow {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* Image cards - Grid style */
.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
  justify-content: start; 
}

.card {
  background: var(--panel);
  border: none !important;
  border-radius: var(--radius);
  padding: 1rem;
  overflow: hidden;
  height: 100%;       
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(60, 36, 21, .16);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;   
  object-fit: cover;
  border-radius: .75rem;
  margin-bottom: .75rem;
  background: #f3f0ea;   
}

.card h3 {
  margin: 0 0 .35rem 0;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 600; 
  letter-spacing: .2px;
}

@media (min-width: 1000px){
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Flavor list (assorted options) */
.flavor-list {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #4a3c2a;
  font-size: 0.95rem;
}

.macros {
  list-style: none;
  margin: .4rem 0 0;
  padding: 0;
}

/* Contact.html two grid layout */
.grid-two {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
  grid-template-columns: 1.2fr .8fr;
}

@media (max-width: 900px) {
  .grid-two { grid-template-columns: 1fr; }
}

.wide-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Panels demonstrate padding/margins/borders (box model) */
.panel {
  background: var(--panel);
  border: none !important;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* ========== Forms (Reservation) ========== */
.reserve-form { 
  display: grid;
  gap: .85rem; 
}

.form-row { 
  display: grid; 
  gap: .35rem; 
}

.form-row.split {
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}

@media (max-width: 560px) {
  .form-row.split { grid-template-columns: 1fr; }
}

label {
  font-weight: 700;
  color: var(--text);
}

input, select, textarea {
  width: 100%;
  padding: .7rem .8rem;
  border-radius: .6rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 92, 43, .20);
}

.note, .intro { color: var(--muted); }

/* Footer */
.site-footer {
  padding: 1rem;
  text-align: center;
  color: var(--muted);
  background: var(--bg);
}

/* Socials in footer */
.socials {
  display: flex;
  gap: .6rem;
  justify-content: center;
  margin-top: .5rem;
}

.social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform .2s ease, opacity .2s ease;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 0.85;
}

/* Product highlight section */
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.badge {
  background: rgba(255, 255, 255, .65);
  backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.badge h3 {
  font-size: 1.4rem;
  margin-bottom: .25rem;
}

.badge p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .badges { grid-template-columns: 1fr; }
}

/* generic grid used there */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .4s ease, filter .4s ease;
  transform: scale(1);
}

.tile:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.tile .meta {
  padding: .85rem 1rem;
  text-align: center;
}

.tile .meta h4 {
  font-size: 1.25rem;
  margin: 0 0 .2rem;
}

.tile .meta p {
  margin: 0;
  color: var(--muted);
}

/* center text in tiles */
.sections.description .tile, .section-lede, .description {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Filter in menu.hmtl */
.filter-bar {
  display: flex;
  gap: .5rem;
  margin: .75rem 0 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.filter-btn:hover { background: var(--panel); }

.filter-btn.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* helpers used by JS filter */
.is-hidden { display: none !important; }
.is-hidden-block { display: none !important; }

/* ========== Global Section Spacing ========== */
.sections{ margin-block: 3rem; } /* top & bottom space */
.sections h2,
.sections-lede {
  text-align: center;
  margin-bottom: 1rem;
}
/* keep text narrower when not in grids */
.sections > *:not(.grid):not(.card-grid) {
  margin-inline: auto;
  max-width: 900px;
}

/* Menu table */
.table-wrap {
  margin: 2rem 0;
  overflow-x: auto;
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: var(--shadow);
}

.menu-table caption {
  font-weight: 700;
  font-size: 1.1rem;
  margin: .75rem 0;
  text-align: left; 
  color: var(--text);
}

.menu-table th, .menu-table td {
  padding: .6rem .75rem;
  border: 1px solid #ccc;
  text-align: left;
  vertical-align: top;
  background: #f9f6f4; 
  font-weight: 700;
}

.menu-table .price-col, .menu-table td.price {
  white-space: nowrap; 
  font-weight: 600;
  color: var(--accent);
}

/* ========== Small Utilities ========== */
.price-tag {
  display: inline-block;
  font-weight: 800;
  margin: .35rem 0 .6rem;
}

.section-title { margin-top: 1.5rem; }