/* ===========================
   Welsh Coast Pizza Co. — Styles
   Mobile-first responsive design
   =========================== */

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

:root {
  --cream: #faf6f0;
  --red: #c0392b;
  --red-dark: #a93226;
  --orange: #e67e22;
  --teal: #1a7a6d;
  --teal-light: #2bb5a0;
  --brown: #3b2f2f;
  --charcoal: #2c2c2c;
  --white: #ffffff;
  --grey-light: #f0ebe4;
  --grey-mid: #c4b9ab;
  --font-display: 'Lobster', cursive;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-light);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--grey-light);
  transition: box-shadow 0.3s;
  height: 70px;
  overflow: hidden;
}

.header--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  box-sizing: border-box;
}

.header__logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: clamp(16px, 3vw, 28px);
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: clamp(500px, 85vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../images/hero-mobile.jpg') center center / cover no-repeat;
  overflow: hidden;
  padding-bottom: 60px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.hero__logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  aspect-ratio: 1/1;
  object-fit: cover;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: normal;
  color: var(--white);
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Wave dividers --- */
.wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(60px, 8vh, 100px);
  display: block;
  z-index: 2;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
  min-height: 48px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--brown);
}

/* --- Sections (shared) --- */
.section {
  position: relative;
  padding: 72px 0 120px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: var(--brown);
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 16px;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--orange), var(--red));
  border-radius: 2px;
}

.section__subtitle {
  text-align: center;
  color: var(--grey-mid);
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  margin-bottom: 40px;
}

/* --- About --- */
.about {
  background: var(--white);
}

.about__content {
  max-width: 720px;
  margin: 0 auto;
}

.about__content p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}

/* --- Menu --- */
.menu .section__subtitle {
  color: var(--red);
}

.menu {
  background: var(--grey-light);
}

.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 32px;
}

.menu__card {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--grey-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.2s;
}

.menu__card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.menu__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--red);
}

.menu__desc {
  color: var(--charcoal);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.menu__price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
}

.menu__note {
  text-align: center;
  font-style: italic;
  color: var(--charcoal);
}

/* --- Find Us / Events --- */
.find-us {
  background: var(--white);
}

.events__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.5vw, 24px);
  margin-bottom: 32px;
}

.event__card {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  border-left: 4px solid var(--teal);
  position: relative;
  overflow: hidden;
}

.event__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 40px;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    var(--teal) 0px,
    var(--teal) 6px,
    var(--orange) 6px,
    var(--orange) 12px,
    var(--red) 12px,
    var(--red) 18px
  );
  opacity: 0.12;
  border-radius: 0 12px 12px 0;
}

.event__date {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.event__location {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.event__details {
  color: var(--charcoal);
  font-size: 0.95rem;
}

.find-us .section__subtitle {
  color: var(--teal);
}

.contact .section__subtitle {
  color: var(--charcoal);
}

.find-us__cta {
  text-align: center;
  font-size: 1.05rem;
}

.find-us__cta a {
  font-weight: 600;
  color: var(--red);
}

.find-us__cta a:hover {
  color: var(--red-dark);
}

/* --- FAQ --- */
.faq {
  position: relative;
  background: url('../images/faq-bg-mobile.jpg') center center / cover no-repeat;
}

.faq__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(59, 47, 47, 0.55) 0%, rgba(26, 122, 109, 0.35) 100%);
  mix-blend-mode: multiply;
}

.faq__overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(230, 200, 160, 0.15);
}

.faq .container {
  position: relative;
  z-index: 1;
}

.faq .section__title {
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.faq__question {
  padding: 20px 24px;
  font-weight: 600;
  color: var(--brown);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  float: right;
  font-size: 1.3rem;
  color: var(--teal);
  font-weight: 700;
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: '−';
}

.faq__answer {
  padding: 0 24px 20px;
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- Contact --- */
.contact {
  background: var(--cream);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 20px;
}

.form__group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--brown);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--grey-mid);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--white);
  transition: border-color 0.2s;
  min-height: 48px;
}

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 4px;
}

.contact__item a {
  color: var(--charcoal);
  font-size: 1rem;
}

.contact__item a:hover {
  color: var(--teal);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-links a {
  color: var(--brown);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--red);
}

/* --- Footer --- */
.footer {
  background: var(--brown);
  color: var(--grey-light);
  padding: 40px 0;
  border-top: 3px solid var(--teal);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__brand img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--grey-mid);
}

.footer__nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: var(--grey-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  color: var(--grey-mid);
  transition: color 0.2s;
}

.footer__social a:hover {
  color: var(--white);
}

/* --- Loading state --- */
.loading-text {
  text-align: center;
  color: var(--grey-mid);
  padding: 20px;
}

/* ===========================
   Responsive — Tablet+
   =========================== */
@media (min-width: 600px) {
  .hero {
    background-image: url('../images/hero-tablet.jpg');
  }

  .faq {
    background-image: url('../images/faq-bg-tablet.jpg');
  }

  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .events__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   Responsive — Desktop
   =========================== */
@media (min-width: 900px) {
  .hero {
    background-image: url('../images/hero.jpg');
  }

  .faq {
    background-image: url('../images/faq-bg.jpg');
  }

  .hero__logo {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 96px 0 140px;
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__brand {
    flex-direction: row;
  }

}

/* ===========================
   Responsive — Wide desktop
   =========================== */
@media (min-width: 1200px) {
  .menu__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   Responsive — Mobile nav
   =========================== */
@media (max-width: 599px) {
  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--grey-light);
    padding: 20px;
    transform: translateY(calc(-100% - 70px));
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
  }

  .nav__link {
    font-size: 1.1rem;
  }
}

/* ===========================
   Responsive — Landscape mobile
   =========================== */
@media (max-height: 500px) {
  .hero {
    min-height: 100vh;
    padding: 60px 20px 40px;
  }

  .hero__logo {
    width: 120px;
    height: 120px;
  }
}
