/* ==========================================================================
   TIRAN STEAK HOUSE - DESIGN SYSTEM & STYLESHEET (OPTIMIZED BEM)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-dark: #0c0c0c;
  --bg-deep-red: #200000;

  --gold-primary: #f3d382;
  --gold-secondary: #f5be32;
  --gold-border: #dcca87;

  --text-cream: #efe7d2;
  --text-muted: rgba(245, 242, 234, 0.7);
  --text-dim: #aaaaaa;
  --text-white: #ffffff;

  /* Fonts */
  --font-heading: 'Cormorant Upright', serif;
  --font-body: 'Open Sans', sans-serif;

  /* Transitions */
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Base Styles
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080808;
}

::-webkit-scrollbar-thumb {
  background: var(--gold-primary);
  border-radius: 4px;
}

/* Layout & Helper Utilities */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
}

.u-flex-column {
  display: flex;
  flex-direction: column;
}

.u-align-center {
  align-items: center;
}

.u-text-center {
  text-align: center;
}

.u-gap-large {
  gap: 16px;
}

.u-section-padding {
  padding: 100px 0;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Block (.header)
   -------------------------------------------------------------------------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: background-color var(--transition-smooth), backdrop-filter var(--transition-smooth), padding var(--transition-smooth);
}

.header--scrolled {
  position: fixed;
  background-color: #220000;
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.header__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 1.76px;
  color: var(--text-white);
  text-transform: uppercase;
  line-height: 1.3;
  outline: transparent;
}

.header__logo:hover {
  color: var(--gold-primary);
  text-shadow: 0 0 15px rgba(243, 211, 130, 0.4);
}

/* Nav Block (.nav) */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.64px;
  color: var(--text-white);
  position: relative;
  padding: 4px 0;
  font-weight: 400;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--gold-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__action-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--text-white);
  text-transform: capitalize;
}

.header__action-link:hover {
  color: var(--gold-primary);
}

.header__divider {
  width: 0px;
  height: 56px;
  border: 1px solid;
  border-image-source: radial-gradient(50% 50% at 50% 50%, #FFFFFF 58.85%, rgba(255, 255, 255, 0) 100%);
  border-image-slice: 1;
}

.header__book-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.8px;
  color: var(--text-white);
  text-transform: capitalize;
  padding: 10px 24px;
  transition: all var(--transition-fast);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
}

.mobile-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--gold-primary);
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   4. Hero Banner Block (.hero) & Breadcrumb (.breadcrumb)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  height: 507px;
  width: 100%;
  background: url('../assets/banner.webp') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 90px;
  line-height: 1.2;
  color: var(--gold-primary);
  letter-spacing: 3.6px;
  text-transform: capitalize;
  text-align: center;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.92px;
  color: var(--text-white);
  text-transform: capitalize;
}

.breadcrumb__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.breadcrumb__arrow img {
  width: 24px;
  height: 24px;
  transform: rotate(-90deg);
}

/* --------------------------------------------------------------------------
   5. Our Story Section (.story) & Accolades (.accolades)
   -------------------------------------------------------------------------- */
.story {
  background-color: #220000;
}

.story__grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.story__image-wrapper {
  background-color: #000000;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 632 / 366;
}

.story__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Block (.card) */
.card {
  border: 2px solid rgba(245, 190, 50, 0.15);
  background-color: #220000;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card--story {
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
}

/* Badge Block (.badge) */
.badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.badge__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
}

.badge__diamond {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(239, 231, 210, 0.15);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.badge__line {
  width: 20px;
  height: 1px;
  background-color: rgba(239, 231, 210, 0.15);
  flex-shrink: 0;
}

.badge__title {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--text-cream);
  text-transform: uppercase;
  white-space: nowrap;
  font-weight: 400;
}

.story__paragraph {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-cream);
  opacity: 0.9;
}

/* Accolades Block (.accolades) */
.accolades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.accolades__card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  text-align: center;
}

/* Rating Block (.rating) */
.rating {
  display: flex;
  gap: 4px;
  color: var(--gold-secondary);
  font-size: 18px;
  padding: 7px 0;
}

.rating__star {
  width: auto;
  height: auto;
}

.accolades__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.accolades__title {
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--text-cream);
  text-transform: uppercase;
  font-weight: 400;
}

.accolades__subtitle {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

/* Story Bottom Grid */
.story__grid-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.story__image-wrapper--bottom {
  width: 100%;
  height: 366px;
  aspect-ratio: 632 / 366;
}

.card--large {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.card__heading {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--text-cream);
  text-transform: uppercase;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   6. Panoramic Separator Banner (.panoramic)
   -------------------------------------------------------------------------- */
.panoramic {
  width: 100%;
  height: 376px;
  overflow: hidden;
}

.panoramic__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   7. Our Chefs Section (.chefs)
   -------------------------------------------------------------------------- */
.chefs {
  background-color: #220000;
}

/* Section Header Block (.section-header) */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 64px;
}

.section-header__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0.92px;
  color: var(--text-white);
  text-transform: capitalize;
  white-space: nowrap;
}

.section-header__spoon {
  width: 40px;
  height: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-header__spoon img {
  width: 40px;
  height: 9px;
  display: block;
}

.section-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.3;
  letter-spacing: 2.56px;
  color: var(--gold-primary);
  text-transform: capitalize;
  text-align: center;
  white-space: nowrap;
}

/* Chefs Grid & Cards (.chef-card) */
.chefs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  width: 100%;
}

.chef-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

.chef-card__image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 414 / 522;
  height: auto;
  overflow: hidden;
  background-color: #080808;
}

.chef-card__border-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold-primary);
  z-index: 2;
  pointer-events: none;
  transition: border-color var(--transition-fast);
}

.chef-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.chef-card:hover .chef-card__border-frame {
  border-color: var(--gold-secondary);
}

/* Active / Hover Chef Overlay */
.chef-card__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 12, 12, 0.5);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 40px;
  gap: 16px;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.chef-card:hover .chef-card__overlay {
  opacity: 1;
}

/* Social Links Block (.social-links) */
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-links__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-links__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Read More Button Block (.btn-read-more) */
.btn-read-more {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.64px;
  color: var(--gold-primary);
}

.btn-read-more__line {
  width: 24px;
  height: 1px;
  background-color: var(--gold-primary);
  transition: all var(--transition-fast);
}

.chef-card__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.chef-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 45px;
  letter-spacing: 1.8px;
  color: var(--text-white);
  line-height: 1.3;
}

.chef-card__name--gold {
  color: var(--gold-primary);
}

.chef-card__role {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.64px;
  color: var(--text-white);
  font-weight: 400;
}

/* --------------------------------------------------------------------------
   8. Newsletter & Footer Section (.newsletter-footer, .newsletter, .back-to-top, .footer)
   -------------------------------------------------------------------------- */
.newsletter-footer {
  position: relative;
  padding-bottom: 127px;
}

.newsletter-footer__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #210000;
}

.newsletter-footer__texture {
  position: absolute;
  top: 348px;
  left: 0;
  width: 100%;
  height: calc(100% - 348px);
  object-fit: cover;
}

.newsletter-footer__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #210000 348px, rgba(4, 4, 4, 0.7) 348px);
}

.newsletter-footer__container {
  position: relative;
  z-index: 2;
  gap: 16px;
}

/* Newsletter Block (.newsletter) */
.newsletter {
  border: 1px solid rgba(220, 202, 135, 0.20);
  background: #0C0C0C;
  box-shadow: 22px 30px 95px 1px rgba(0, 0, 0, 0.70);
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  width: 100%;
}

.newsletter .section-header {
  gap: 8px;
  margin-bottom: 0;
}

.newsletter .section-header__subtitle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0.92px;
  color: #ffffff;
  text-transform: capitalize;
}

.newsletter .section-header__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 64px;
  line-height: 1.3;
  letter-spacing: 1.92px;
  color: #f3d382;
  text-transform: capitalize;
  text-align: center;
}

.newsletter__subtext {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: #ffffff;
  margin-top: 24px;
  text-align: center;
}

.newsletter__form {
  display: flex;
  gap: 32px;
  width: 100%;
  max-width: 640px;
  align-items: center;
  justify-content: center;
}

.newsletter__input-wrapper {
  flex: 1;
}

.newsletter__input {
  width: 100%;
  height: 60px;
  background: transparent;
  border: 1px solid #f5efdb;
  padding: 16px 19px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  font-style: normal;
  line-height: 175%;
  letter-spacing: 0.64px;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--text-cream);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter__input::placeholder {
  color: #AAA;
  font-variant-numeric: lining-nums tabular-nums;
  font-family: var(--font-heading);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 175%;
  letter-spacing: 0.64px;
  text-transform: capitalize;
}

.newsletter__input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(243, 211, 130, 0.3);
}

.newsletter__subscribe-btn {
  height: 60px;
  padding: 8px 32px;
  background-color: #f5be32;
  border: 1px solid #dcca87;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 1.75;
  color: #0c0c0c;
  transition: all var(--transition-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.newsletter__subscribe-btn:hover {
  background-color: var(--gold-primary);
  box-shadow: 0 0 20px rgba(245, 190, 50, 0.4);
  transform: translateY(-2px);
}

/* Back to Top Block (.back-to-top) */
.back-to-top {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: 8px;
}

.back-to-top__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #f5be32;
  transition: transform var(--transition-fast);
}

.back-to-top__button:hover {
  transform: translateY(-6px);
}

.back-to-top__line-wrapper {
  width: 1px;
  height: 61px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top__line {
  width: 1px;
  height: 61px;
  display: block;
}

.back-to-top__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.64px;
  color: #f5be32;
  text-transform: uppercase;
}

/* Footer Block (.footer) */
.footer {
  display: flex;
  width: 1280px;
  max-width: 100%;
  padding: 16px 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer__copyright {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: #aaaaaa;
  letter-spacing: 0.64px;
}
