/* Dish With Ish — site styles */

:root {
  --dwi-dark: #2d2d2d;
  --dwi-text: #4a4a4a;
  --dwi-nav: #333333;
  --dwi-border: #e5e5e5;
  --font-ui: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, "Times New Roman", Times, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--dwi-text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--dwi-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.75;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--dwi-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.nav-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-left a,
.nav-right a,
.nav-dropdown-toggle {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dwi-nav);
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  min-width: 11rem;
  background: #fff;
  border: 1px solid var(--dwi-border);
  padding: 0.5rem 0;
  z-index: 1100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwi-nav);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: #f7f7f7;
  opacity: 1;
}

.mobile-nav-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dwi-nav);
  margin-top: 0.25rem;
}

.mobile-nav-sub {
  padding-left: 1rem !important;
}

.logo-center {
  justify-self: center;
}

.site-logo {
  max-height: 80px;
  width: auto;
  display: block;
}

.account-dropdown .account-toggle {
  background: none;
  border: none;
  color: var(--dwi-nav);
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.account-dropdown .dropdown-toggle::after {
  display: none;
}

.account-dropdown .dropdown-menu {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-radius: 0;
  border-color: var(--dwi-border);
}

.mobile-menu-toggle {
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dwi-dark);
}

.mobile-nav {
  border-top: 1px solid var(--dwi-border);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dwi-nav);
}

.mobile-account {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--dwi-border);
}

/* Main content — full width */
main {
  min-height: calc(100vh - 200px);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--dwi-border);
  text-align: center;
  padding: 2rem 1rem;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--dwi-nav);
}

.site-footer p {
  margin: 0;
}

/* Buttons */
.btn-dwi {
  background-color: var(--dwi-dark);
  border: 1px solid var(--dwi-dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 0;
  transition: background-color 0.2s, color 0.2s;
}

.btn-dwi:hover,
.btn-dwi:focus {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}

.btn-dwi:active {
  background-color: #000;
  border-color: #000;
  color: #fff;
}

/* Auth pages */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1.5rem 4rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
  border: 1px solid var(--dwi-border);
  background: #fff;
}

.auth-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2rem;
}

.auth-card .form-label {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwi-nav);
}

.auth-card .form-control {
  border-radius: 0;
  border-color: var(--dwi-border);
  font-family: var(--font-ui);
}

.auth-card .form-control:focus {
  border-color: var(--dwi-dark);
  box-shadow: 0 0 0 0.1rem rgba(45, 45, 45, 0.15);
}

.auth-footer {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--dwi-text);
}

.auth-footer a {
  text-decoration: underline;
  color: var(--dwi-dark);
}

.account-details {
  font-family: var(--font-ui);
  font-size: 14px;
}

.account-details dt {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--dwi-nav);
  margin-top: 1rem;
}

.account-details dt:first-child {
  margin-top: 0;
}

.account-details dd {
  margin-bottom: 0;
  color: var(--dwi-dark);
}

/* Form focus overrides */
.btn:focus,
.btn:active:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.2rem rgba(45, 45, 45, 0.25);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .logo-center {
    grid-column: 1;
    justify-self: start;
  }

  .mobile-menu-toggle {
    grid-column: 2;
  }
}

/* Recipe pages */
.recipe-page {
  padding-bottom: 3rem;
}

.recipe-hero img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.recipe-body h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dwi-nav);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dwi-border);
}

.recipe-body h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.ingredient-list,
.step-list {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.ingredient-list li,
.step-list li {
  margin-bottom: 0.5rem;
}

.back-link {
  margin-top: 2.5rem;
  font-family: var(--font-ui);
  font-size: 14px;
}

.back-link a {
  text-decoration: underline;
  color: var(--dwi-dark);
}

/* Main Dish recipe grid */
.main-dish-page {
  padding: 2.5rem 0 4rem;
}

.main-dish-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.recipe-card {
  border: 1px solid var(--dwi-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.recipe-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.recipe-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recipe-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recipe-card-body h2,
.recipe-card-body h4 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.recipe-card-body p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.recipe-card-link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dwi-dark);
  text-decoration: underline;
}

/* Home hero — split layout matching GoDaddy */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.hero-image {
  background-size: cover;
  background-position: center;
  min-height: 360px;
}

.hero-panel {
  background: #111;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
}

.hero-panel h1 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero-sub {
  color: #ddd;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: #ccc;
  font-size: 0.95rem;
}

.hero-panel .btn-dwi {
  background: #4a4a4a;
  border-color: #4a4a4a;
}

.hero-panel .btn-dwi:hover {
  background: #5a5a5a;
  border-color: #5a5a5a;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 280px;
  }
}

/* Sections */
.section {
  padding: 3.5rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.5rem;
  color: #555;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  margin: 1.5rem 0 1rem;
}

.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-intro {
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.page-intro h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.page-intro p {
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.about-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.5rem;
}

.text-link {
  color: var(--dwi-dark);
  text-decoration: underline;
}

.muted {
  color: #888;
  font-family: var(--font-ui);
}

/* Photo grids */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.photo-grid img,
.photo-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.photo-item {
  margin: 0;
}

/* Recipe gallery carousel */
.recipe-gallery-carousel {
  max-width: 920px;
  margin: 0 auto;
  background: #111;
  position: relative;
}

.recipe-gallery-slide {
  display: block;
  position: relative;
  color: inherit;
}

.recipe-gallery-slide:hover {
  opacity: 1;
}

.recipe-gallery-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.recipe-gallery-caption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  text-align: left;
}

.recipe-gallery-caption h3 {
  color: #fff;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
  margin: 0 0 0.35rem;
}

.recipe-gallery-cta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}

.recipe-gallery-slide:hover .recipe-gallery-cta {
  opacity: 1;
}

.recipe-gallery-carousel .carousel-control-prev,
.recipe-gallery-carousel .carousel-control-next {
  width: 12%;
  opacity: 0.85;
}

.recipe-gallery-counter {
  position: absolute;
  top: 0.85rem;
  right: 1rem;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0.65rem;
}

@media (max-width: 575.98px) {
  .recipe-gallery-carousel .carousel-item img {
    aspect-ratio: 1;
  }

  .recipe-gallery-caption {
    padding: 2rem 1rem 1rem;
  }
}

/* Contact / newsletter */
.contact-form,
.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
}

.contact-form .form-label,
.newsletter-form .form-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form .form-control,
.newsletter-form .form-control {
  border-radius: 0;
  border-color: var(--dwi-border);
}

.newsletter-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-row .form-control {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.newsletter-section {
  background: #f7f7f7;
}

.contact-section {
  background: #fafafa;
}

/* Episodes */
.episode-block {
  margin-bottom: 3rem;
  text-align: center;
}

.episode-block h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.video-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1.25rem auto 0;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.episode-recipes {
  max-width: 900px;
  margin: 1.25rem auto 0;
  text-align: left;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--dwi-border);
}

.episode-recipes h3 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #666;
}

.episode-recipe-list {
  margin: 0;
  padding-left: 1.25rem;
}

.episode-recipe-list li {
  margin-bottom: 0.35rem;
}

.recipe-card-episode {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}

/* Wider Main Dish */
.main-dish-page .container-narrow {
  max-width: 1100px;
}

/* Admin */
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--dwi-border);
}

.admin-header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  flex-wrap: wrap;
}

.admin-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dwi-dark);
  white-space: nowrap;
}

.admin-brand span {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin-left: 0.4rem;
}

.admin-nav {
  display: flex;
  gap: 1rem 1.25rem;
  flex: 1;
  flex-wrap: wrap;
}

.admin-nav a {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dwi-nav);
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-header-actions .text-link {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.admin-main {
  min-height: calc(100vh - 90px);
  background: #f7f7f7;
  padding-bottom: 2rem;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--dwi-border);
  padding: 1.5rem;
  border-radius: 4px;
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--dwi-border);
  border-radius: 4px;
  overflow-x: auto;
}

.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.admin-image-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
  border: 1px solid var(--dwi-border);
}

/* Shop */
.shop-page {
  padding: 2.5rem 0 4rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

.shop-card {
  border: 1px solid var(--dwi-border);
  background: #fff;
  display: flex;
  flex-direction: column;
}

.shop-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}

.shop-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.shop-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.shop-card-price {
  font-family: var(--font-ui);
  font-weight: 600;
  margin-bottom: 1rem;
}

.shop-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #888;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
  display: block;
  margin-bottom: 0.75rem;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
}

.product-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #eee;
  cursor: pointer;
  border: 2px solid transparent;
}

.product-gallery-thumbs img.active {
  border-color: var(--dwi-dark);
}

.cart-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--dwi-dark);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1;
  border-radius: 50%;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
}

.cart-line {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--dwi-border);
}

.cart-line img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.cart-summary {
  background: #fafafa;
  border: 1px solid var(--dwi-border);
  padding: 1.5rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
  font-size: 14px;
}

.cart-summary-row.total {
  font-weight: 700;
  font-size: 1.1rem;
  border-top: 1px solid var(--dwi-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}
