/* ============================================
   DEVON NUTRITION - MAIN STYLESHEET
   ============================================ */

:root {
  --primary-color: #d4a574;
  --dark-text: #2c2c2c;
  --light-text: #ffffff;
  --light-bg: #f8f8f8;
  --border-color: #e0e0e0;
  --spacing-unit: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
}

body {
  background: #ffffff;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  max-width: none;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--dark-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: auto;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--dark-text);
  transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--light-text);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--light-text);
}

.hero .tagline {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
}

/* ============================================
   SECTIONS & CONTENT
   ============================================ */

section {
  padding: 4rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-text);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--dark-text);
}

/* ============================================
   BUTTONS
   ============================================ */

.button,
a.button,
button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: var(--primary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  font-size: 1rem;
}

.button:hover,
a.button:hover,
button:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.button-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.button-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* ============================================
   CARDS & BOXES
   ============================================ */

.card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* ============================================
   IMAGES & MEDIA
   ============================================ */

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

.image-full {
  width: 100%;
  height: auto;
}

figure {
  margin: 2rem 0;
}

figcaption {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */

form {
  max-width: 600px;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.pt-1 { padding-top: 1rem; }
.pt-2 { padding-top: 2rem; }
.pb-1 { padding-bottom: 1rem; }
.pb-2 { padding-bottom: 2rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .header-wrapper {
    padding: 1rem 1.5rem;
  }

  nav {
    gap: 1.5rem;
  }

  section {
    padding: 3rem 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #ffffff;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    gap: 0;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  /* The open mobile menu always has a white background, so its links
     must stay dark even on hero-page where the header text is normally
     white (transparent header over the hero image). */
  body.hero-page nav.active a {
    color: var(--dark-text);
  }

  .header-wrapper {
    padding: 1rem;
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.25rem;
    min-width: 0;
  }

  .logo img {
    height: 34px;
    max-width: none;
  }

  .mobile-menu-toggle {
    flex-shrink: 0;
    margin-left: auto;
  }

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 7rem 1.5rem 3rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  section {
    padding: 2.5rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.35rem;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  section {
    padding: 1.5rem 1rem;
  }

  .button,
  a.button,
  button {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background: url('../images/leaves+knife.jpg') center / cover no-repeat;
  color: var(--dark-text);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer a {
  color: var(--dark-text);
  text-decoration: none;
}

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

footer p {
  color: var(--dark-text);
  margin: 0.5rem 0;
}

footer a.button {
  display: inline-block;
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
  padding: 0.75rem 2.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

footer a.button:hover {
  background: transparent;
  color: #1a1a1a;
}


/* ============================================
   HERO QUOTE TEASERS
   ============================================ */

.hero-quotes {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero-quotes p {
  font-style: italic;
  font-size: 1rem;
  color: var(--light-text);
  margin: 0;
}

/* ============================================
   FADE-IN ON SCROLL
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   BANNER IMAGE (subpages)
   ============================================ */

.banner-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
}

/* ============================================
   TESTIMONIAL BLOCKS
   ============================================ */

.testimonial {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-color);
}
.testimonial p {
  margin-bottom: 0.25rem;
  font-style: italic;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* ============================================
   PRICING TABLE
   ============================================ */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.price-table td, .price-table th {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

/* ============================================
   CONTACT CTA BLOCK
   ============================================ */

.contact-cta {
  text-align: center;
}
.contact-cta a {
  color: var(--primary-color);
  font-weight: 600;
}

/* ============================================
   TRANSPARENT HEADER (over hero, index page)
   ============================================ */

body.hero-page header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  border-bottom: none;
  box-shadow: none;
  z-index: 10;
}

body.hero-page .logo,
body.hero-page nav a {
  color: var(--light-text);
}

body.hero-page nav a:hover,
body.hero-page nav a.active {
  color: var(--primary-color);
}

body.hero-page .mobile-menu-toggle span {
  background: var(--light-text);
}

/* ============================================
   FULL-BLEED PHOTO CONTENT SECTIONS
   ============================================ */

.photo-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-text);
  overflow: hidden;
}

.photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.photo-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.photo-section h1,
.photo-section h2,
.photo-section h3 {
  color: var(--light-text);
}

.photo-section h3 {
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.photo-section p {
  color: var(--light-text);
}

.photo-section .testimonial {
  border-left: none;
  text-align: center;
  padding-left: 0;
  margin-bottom: 2rem;
}

.photo-section .testimonial cite {
  color: var(--light-text);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .photo-section {
    background-attachment: scroll;
  }
}

/* ============================================
   CONTACT SECTION WITH FORM
   ============================================ */

.contact-photo-section .container {
  max-width: 1100px;
  text-align: left;
}

.contact-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  text-align: left;
}

.contact-flex .contact-intro {
  flex: 1 1 280px;
}

.contact-flex .contact-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.8);
  margin-top: 1rem;
}

.contact-flex form {
  flex: 1 1 340px;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 8px;
}

.contact-flex form label,
.contact-flex form p {
  color: var(--dark-text);
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-row .form-group {
  flex: 1;
}

/* ============================================
   ABOUT ME PHOTO LAYOUT
   ============================================ */

.about-photo-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
  padding: 6rem 2rem;
}

.about-photo-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(70, 70, 70, 0.35);
}

.about-photo-section .container.about-flex {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1300px;
  text-align: left;
}

.about-text-card {
  background: rgba(248, 248, 248, 0.94);
  padding: 3rem;
  border-radius: 4px;
  flex: 1 1 480px;
}

.about-text-card h1 {
  margin-bottom: 1.5rem;
}

.about-photos {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-photos img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
  .about-photo-section .container.about-flex {
    flex-direction: column;
  }

  .about-text-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .about-photo-section {
    background-attachment: scroll;
    padding: 3rem 1rem;
  }
}

/* Extra clearance so the transparent header doesn't overlap the
   heading on interior pages whose hero is the first section in main */
main > section:first-child.photo-section,
main > section:first-child.about-photo-section {
  padding-top: 9rem;
}

@media (max-width: 768px) {
  main > section:first-child.photo-section,
  main > section:first-child.about-photo-section {
    padding-top: 7rem;
  }
}

/* ============================================
   SERVICES CARDS
   ============================================ */

.services-section {
  background: var(--light-bg);
}

.service-card {
  padding: 0;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card .card-body {
  padding: 2rem;
}

.button-dark,
a.button-dark {
  background-color: #1a1a1a;
  border-color: #1a1a1a;
  font-size: 0.9rem;
  padding: 0.6rem 1.75rem;
}

.button-dark:hover,
a.button-dark:hover {
  background-color: transparent;
  color: #1a1a1a;
}

.button-light,
a.button-light {
  background-color: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

.button-light:hover,
a.button-light:hover {
  background-color: transparent;
  color: #ffffff;
}

/* ============================================
   GETTING STARTED HERO
   ============================================ */

.gs-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--light-text);
  overflow: hidden;
  padding: 9rem 2rem 5rem;
}

.gs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(35, 40, 40, 0.45);
}

.gs-hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.gs-hero h1 {
  text-align: center;
  color: var(--light-text);
  margin-bottom: 3rem;
}

.gs-hero h2,
.gs-hero h3 {
  color: var(--light-text);
}

.gs-hero p {
  color: var(--light-text);
}

.gs-hero .button {
  margin: 1rem 0 2rem;
}

@media (max-width: 768px) {
  .gs-hero {
    background-attachment: scroll;
    padding: 7rem 1rem 3rem;
  }
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-icons {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: var(--light-text);
}

.social-icons a:hover {
  background: var(--primary-color);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ============================================
   MAP EMBED
   ============================================ */

.map-section {
  padding: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

.form-group label em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.8rem;
  color: #777;
}
