/*
Theme Name: Frymaster Landing
Author: Richard
Version: 1.0
Text Domain: frymaster-landing
*/

/* ===========================
   Base Reset & Variables
=========================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

:root {
  --blue: #00416a;
  --orange: #ff8c00;
  --teal: #00bcd4;
  --bg-light: #ecf0f1;
  --text-dark: #2c3e50;
  --font: "Segoe UI", Arial, sans-serif;
}

/* ===========================
   Background
=========================== */
body {
  font-family: var(--font);
  background: url('images/background.jpg') center/cover no-repeat fixed;
  color: #333;
  line-height: 1.6;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: clamp( 50vh, 55vw, 60vh);
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  border: 3px solid var(--bg-light);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
}

.hero img.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.3);
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(2rem, 8vw, 7rem);
  border-radius: 20%;
  text-align: center;
}

.hero-overlay h1 {
  color: var(--bg-light);
  font-size: clamp(1.8rem, 5vw, 3rem);
  margin: 0 0 1rem 0;
}

.order-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: #ff8c00;
  color: var(--blue);
  font-weight: 700;
  border-radius: 40px;
  font-size: clamp(1rem, 3vw, 1.25rem);
  cursor: pointer;
  border: none;
}

/* ===========================
   THREE-BOX SECTION
=========================== */
.triple-box-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 1rem auto;
  display: flex;
  gap: 1rem;
}

.info-box {
  flex: 1;
  background: var(--bg-light);
  border: 2px solid var(--orange);
  border-radius: 12px;
  overflow: hidden;
}

/* Accordion buttons */
.accordion-btn {
  width: 100%;
  background: var(--blue);
  color: var(--bg-light);
  padding: 1rem;
  border: none;
  font-size: clamp(1rem, 2.8vw, 1.4rem);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

/* Desktop: content always open */
.accordion-content {
  max-height: none;
  padding: 1rem;
  transition: max-height 0.4s ease;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  line-height: 1.45;
}

/* Contact box spacing */
.info-box:nth-child(2) .accordion-content {
  text-align: center;
}

/* Opening Times grid */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

.day, .hours {
  color: var(--blue);
  font-weight: 600;
}

.hours {
  text-align: center;
}

.hours em {
  display: block;
  text-align: center;
}

/* ===========================
   CONTACT SECTION
=========================== */
.phone-icon {
  width: 50px;
  margin: 0 auto;
}

.email-icon {
  width: 140px;
  margin: -1rem auto -1rem;
}

.info-box:nth-child(2) .accordion-content p {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 0.75rem;
}

.contact-item a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ===========================
   FIND US
=========================== */
.findus-list {
  list-style: disc;
  padding-left: 1.5rem;
  text-align: left;
  margin-bottom: 1.2rem;
  color: var(--blue);
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  font-weight: 600;
  line-height: 1.9;
}

.info-box:nth-child(3) .accordion-content {
  text-align: center;
}

.directions-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--blue);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.directions-btn:hover {
  background: #e67a00;
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
=========================== */
.footer {
  width: 90%;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0.5rem 1rem;
  background: var(--bg-light);
  border: 2px solid var(--blue);
  border-radius: 12px;
  text-align: center;
}

.footer a {
  color: var(--blue);
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 600;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
}

.footer a:hover {
  text-decoration: underline;
}

.footer .full-site {
  display: block;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--orange);
  font-weight: 600;
}


/* ===========================
   MODAL
=========================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.show {
  display: flex !important;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 600px;
  padding: 1.5rem;
  border-radius: 8px;
  border: 3px solid var(--orange);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  max-height: 80vh;
  overflow-y: auto;
}

.close-modal {
  float: right;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--blue);
}

/* ===========================
   RESPONSIVE OVERRIDES
=========================== */

/* MOBILE — up to 760px */
@media (max-width: 760px) {

  /* Accordion */
  .triple-box-wrapper {
    flex-direction: column;
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
  }

  .accordion-content.open {
    max-height: 325px;
    padding: 1rem;
  }

  /* Hero */
  .hero {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    height: clamp(30vh, 50vw, 60vh);
  }

  .hero-overlay h1 {
    font-size: clamp(1.1rem, 4vw, 2rem);
    line-height: 1.1;
  }

  .order-btn {
    padding: 0.5rem 2.5rem;
    font-size: 1rem;
    border-radius: 30px;
  }

  /* Footer */
  .footer {
    padding: 0.25rem 0.5rem;
    margin: 1rem auto;
  }

  .footer .full-site {
    margin-bottom: 0.25rem;
    font-size: 1rem;
  }

  .footer p {
    margin-top: 0.5rem;
    line-height: 1.2;
  }
}

/* TABLET — 761px to 1024px */
@media (min-width: 761px) and (max-width: 1024px) {

  /* Hero */
  .hero {
    height: clamp(50vh, 55vw, 60vh);
  }

  .hero-overlay h1 {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  .order-btn {
    padding: 1rem 1.8rem;
    font-size: 1.2rem;
  }

}
