/*
 * Dastak by Patran Foods website styles
 *
 * This stylesheet defines the visual identity for the premium basmati rice brand. It
 * leverages CSS variables for colour palette management and responsive design
 * techniques to provide a luxurious, modern and accessible experience across
 * devices. Animations are subtle to reinforce the premium feel without
 * distracting from content.
 */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.6;
  color: var(--color-charcoal);
  /*
   * Apply a subtle background image across all pages.  A semi‑transparent
   * gradient overlays the farmland photograph to ensure text legibility
   * while bringing warmth and depth to otherwise plain sections.  The
   * fixed attachment creates a gentle parallax effect when scrolling.
   */
  background-image:
    linear-gradient(135deg, rgba(255,247,240,0.95) 0%, rgba(255,247,240,0.85) 70%),
    url('../images/hero-farmland.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Colour palette variables */
:root {
  /*
   * Updated colour palette
   *
   * The original design leaned heavily on deep greens and browns.  To better
   * complement the orange accent used in the Patran Foods logotype we
   * introduce a warmer palette built around earthy oranges, soft neutrals
   * and a supporting olive green.  These colours are defined as CSS
   * variables here and used throughout the site.
   */
  --color-ivory: #FFF9F3;      /* light neutral background */
  --color-gold: #E9A542;       /* warm gold/orange used for highlights */
  --color-brown: #8B4A2E;      /* rich brown for headings and accents */
  --color-green: #D45D22;      /* burnt orange replaces the old green */
  --color-charcoal: #1E1E1E;   /* unchanged dark text colour */
  --color-light-grey: #F3F1EC; /* soft off‑white for panels */

  /*
   * Header background colour
   *
   * The original header used a white bar which made the white logotype
   * completely disappear.  Introduce a dedicated variable for the
   * header so we can apply a very light orange behind the logo and
   * navigation links.  This ensures there is enough contrast for the
   * script lettering to stand out without overpowering the rest of the
   * design.
   */
  --color-header: #FEEADB;
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--color-brown);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-green);
  color: var(--color-ivory);
}

.btn-primary:hover {
  background-color: var(--color-brown);
  color: var(--color-ivory);
}

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

.btn-secondary:hover {
  background-color: var(--color-green);
  color: var(--color-ivory);
}

.link {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--color-green);
  transition: width 0.3s;
  margin-top: 2px;
}

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

/* Header */
.site-header {
  /*
   * Use the dedicated header colour instead of pure white.  A hint of
   * orange drawn from our palette provides contrast for the logo’s
   * white and gold lettering while tying the navigation bar into the
   * overall colour scheme.
   */
  background-color: #8f5326;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-green);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Ensure logo image scales nicely in header */
.logo img {
  /*
   * Increase the logo size to improve brand presence.  The height
   * definition allows the SVG/PNG to scale proportionally without
   * distortion.  A max height is set to maintain reasonable dimensions
   * on smaller viewports.
   */
  height: 70px;
  max-height: 10vh;
  width: auto;
}

.logo i {
  color: var(--color-gold);
}

/* Typography‑based logo design for this version of the website.  
   The main brand name uses a script font to emulate the elegance of the original Dastak mark,
   while the subtext uses a clean sans serif. */
.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-family: 'Great Vibes', cursive;
  font-size: 2rem;
  color: var(--color-gold);
  margin: 0;
  line-height: 1;
}

.logo-subtext {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  color: var(--color-brown);
  text-transform: uppercase;
  margin-top: 0.1rem;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #d5ac0f;
}

.cta-nav .btn {
  font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--color-charcoal);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background-color: var(--color-ivory);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-nav ul {
  list-style: none;
  padding: 1rem;
}

.mobile-nav li {
  margin-bottom: 1rem;
}

.mobile-nav a {
  color: var(--color-charcoal);
  font-weight: 600;
  text-decoration: none;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-ivory);
  overflow: hidden;

  /* Cinematic rice field background for the home page hero. The image is
     scaled up slightly and animated to create a gentle zoom effect that
     feels alive without distracting the viewer. */
  /*
   * The hero section now layers a soft diagonal gradient over the
   * farmland photograph.  The gradient draws on our new palette,
   * starting with a deep burnt orange fading into a muted olive hue.
   * Combining multiple backgrounds in one declaration allows the
   * underlying image to remain visible while adding warmth and depth.
   */
  background-image:
    linear-gradient(135deg, rgba(212,93,34,0.65), rgba(142,105,50,0.65)),
    url('../images/hero-farmland.png');
  background-size: cover;
  background-position: center;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Video background styling */
.hero .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
}

.hero .video-background iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;

}

/* Ensure videos used in the hero background fill the section like iframe embeds */
.hero .video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Image background container for the home hero
   Similar to the video container, it ensures the rice field photo
   fills the hero and participates in the zoom animation. */
.hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -3;
}

.hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Video background container for the home hero
   When a video element is present, it fills the hero just like the image container. */
.hero .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Default gradient background for hero sections */
  background: linear-gradient(120deg, var(--color-green) 0%, var(--color-gold) 70%);
  z-index: -2;
}

/* Remove the default gradient for hero sections that explicitly opt out.
   Pages can add the class `no-gradient` to their hero section to let the
   photographic background show through without a coloured overlay. */
.hero.no-gradient::before {
  background: none;
}

/* The home page hero uses a photographic background instead of a gradient. When
   the hero element has the id "hero", remove the default gradient so the
   rice field image is visible. */
#hero::before {
  background: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Light overlay on top of the hero background.  A warm off‑white
     translucent layer softens the underlying photograph and improves
     contrast for our orange/brown text without making the image feel
     gloomy. */
  /* Lighten the overlay so the hero background images are more visible while still ensuring text legibility */
  background: rgba(255, 249, 243, 0.4);
  z-index: -1;
}

/* When hero contains a video, remove gradient background */
.hero.has-video::before {
  background: none;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  /* Increase the hero heading for greater visual impact */
  font-size: 3rem;
  margin-bottom: 1rem;
  /* Use the rich brown tone for hero headlines to stand out against the
     warm gradient overlay. */
  /* Use white for the hero headline to maximise contrast over the
     photographic background.  Secondary accent colours are used
     sparingly elsewhere. */
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  /* Ensure the subtitle remains legible over the hero background by
     applying our brown accent colour. */
  color: #fefcfb;
  opacity: 0.9;
}

.hero-ctas a {
  margin: 0 0.5rem;
}

.hero-emblem {
  position: absolute;
  bottom: -40px;
  right: 20px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
  transform: rotate(-20deg);
}

/* Trust Section */
.trust {
  padding: 4rem 0;
  background-color: var(--color-light-grey);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--color-green);
  margin-top: 0.5rem;
}

.trust-item p {
  color: var(--color-brown);
  font-weight: 600;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  /*
   * Replace the solid colour in the feature circles with a cropped
   * photograph.  Reusing the farmland hero image throughout the site
   * ties the decorative elements together and removes the harsh
   * blocks of orange the client disliked.  The image is sized to
   * cover the circle so different parts of the photo appear in each
   * instance.  Font‑awesome icons remain centred above the photo but
   * we reduce their opacity to let the image show through.
   */
  background-color: transparent;
  /* Use a subtle aerial rice field photo for all circular backgrounds.  This replaces the plain orange with a natural texture while remaining minimal and non‑distracting. */
  background-image: url('../images/bg_about_new.jpg');
  background-size: cover;
  background-position: center;
  color: var(--color-ivory);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Ensure icons contrast against the circular background */
.icon-circle i {
  /*
   * Use the burnt orange tone for icons to ensure they remain legible
   * over the photographic circle backgrounds.  A slight opacity
   * softens the contrast while still letting the underlying image show
   * through.
   */
  color: var(--color-green);
  opacity: 0.9;
}

/* ------------------------------------------------------------------ */
/* Values Section
   Highlights the brand values in four equal cards. The grid is responsive and
   centers content similarly to the trust metrics for a consistent layout.
------------------------------------------------------------------ */
.values {
  background: var(--color-ivory);
  padding: 4rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.value-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--color-green);
  margin-top: 0.5rem;
}

.value-item p {
  color: var(--color-brown);
  font-weight: 500;
}

/* Brand Story */
.brand-story {
  padding: 4rem 0;
}

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

.step {
  text-align: center;
  padding: 1rem;
  background-color: var(--color-light-grey);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
}

.step-icon {
  font-size: 2rem;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

.step h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--color-brown);
}

.step p {
  font-size: 0.9rem;
  color: var(--color-charcoal);
}

/* Technology Section */
.technology {
  padding: 4rem 0;
  background-color: var(--color-light-grey);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.tech-item {
  padding: 1.5rem 1rem;
  background-color: var(--color-ivory);
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.tech-item p {
  font-size: 0.9rem;
}

/* Product Collection */
.product-collection {
  padding: 4rem 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  /*
   * Center align the final row of products.  By default CSS grid will
   * stretch items to fill the entire row which leaves the last two
   * items aligned to the left when there are fewer than three items.
   * Using justify‑content centres the grid within its container so
   * incomplete rows are centred.
   */
  justify-content: center;
}

.product-card {
  background-color: var(--color-ivory);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Display product packaging images elegantly inside cards */
.product-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

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

.product-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.product-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--color-brown);
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--color-charcoal);
}

/* Photo styling for individual product pages */
.product-photo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Global Presence */
.global-presence {
  padding: 4rem 0;
  background-color: var(--color-light-grey);
  text-align: center;
}

.global-map {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.world-svg {
  width: 80%;
  max-width: 600px;
  height: auto;
  color: var(--color-gold);
}

.presence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  font-weight: 600;
  color: var(--color-brown);
}

.presence-list span {
  position: relative;
}

.presence-list span:not(:first-child)::before {
  content: '';
  width: 8px;
  height: 2px;
  background: var(--color-green);
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Final CTA */
.final-cta {
  padding: 4rem 0;
  background-color: var(--color-charcoal);
  color: var(--color-ivory);
  text-align: center;
}

/* Packaging Gallery Section */
.packaging-gallery {
  padding: 4rem 0;
  background-color: var(--color-light-grey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  /* Center the last row of packaging images so that if there are
     fewer items than the full number of columns the items are
     evenly spaced rather than left‑aligned */
  justify-content: center;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.final-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-buttons a {
  margin: 0.5rem;
}

.btn-secondary.final {
  border-color: var(--color-ivory);
  color: var(--color-ivory);
}

/* Footer */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-ivory);
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

.site-footer p, .site-footer a {
  font-size: 0.9rem;
  color: var(--color-ivory);
}

.site-footer a {
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--color-gold);
}

.footer-social a {
  margin-right: 0.5rem;
  color: var(--color-ivory);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-light-grey);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .cta-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}

/* Visibility animations using IntersectionObserver. Elements with the class
   .reveal will fade in when scrolled into view. */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/*------------------------------------------------------------------*/
/* Hero Section Animation
   A gentle zoom effect on the hero background creates a cinematic
   sensation on the landing page without requiring a video file.  The
   animation alternates between slightly zoomed out and slightly zoomed in.
------------------------------------------------------------------*/
@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}


/* Photo replacement cards */
.section-card-photo {
  display: block;
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 0 1rem;
  box-shadow: 0 8px 22px rgba(49, 40, 28, 0.14);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.trust-item,
.value-item {
  background: var(--color-ivory);
  border-radius: 12px;
  padding: 0.85rem 0.85rem 1.35rem;
  box-shadow: 0 4px 18px rgba(49, 40, 28, 0.08);
  overflow: hidden;
}

.trust-item:hover .section-card-photo,
.step:hover .section-card-photo,
.tech-item:hover .section-card-photo,
.value-item:hover .section-card-photo,
.tech-feature:hover .section-card-photo {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.03);
}

.step,
.tech-item {
  padding: 0.85rem 0.85rem 1.35rem;
  overflow: hidden;
}

.step .section-card-photo {
  height: 130px;
}

.tech-item .section-card-photo,
.value-item .section-card-photo,
.trust-item .section-card-photo {
  height: 155px;
}

.tech-feature {
  overflow: hidden;
}

.tech-feature .section-card-photo {
  height: 190px;
}

@media (max-width: 600px) {
  .section-card-photo,
  .step .section-card-photo,
  .tech-item .section-card-photo,
  .value-item .section-card-photo,
  .trust-item .section-card-photo,
  .tech-feature .section-card-photo {
    height: 210px;
  }
}

/* ================================================================
   Patran Foods content refresh
   Extends the existing visual system without replacing its core CSS.
================================================================ */

.hero-kicker,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fff4db;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

.inner-hero {
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  animation: none;
}

.content-section,
.intro-section {
  padding: 5rem 0;
  background: rgba(255, 249, 243, 0.96);
}

.narrow-copy {
  max-width: 900px;
}

.narrow-copy p {
  margin-bottom: 1.35rem;
  font-size: 1.04rem;
}

.lead-copy {
  font-size: 1.12rem !important;
  line-height: 1.85;
  text-align: center;
}

.section-intro {
  max-width: 780px;
  margin: -0.55rem auto 2.25rem;
  text-align: center;
  color: #4d443e;
}

.value-icon {
  display: block;
  margin: 0.25rem auto 1rem;
  color: var(--color-gold);
  font-size: 2rem;
}

.feature-band {
  padding: 5rem 0;
  background: var(--color-light-grey);
}

.feature-band-grid,
.packaging-note-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.feature-copy h2,
.packaging-note h2,
.contact-form-copy h2,
.service-copy h2,
.tech-detail-copy h2 {
  margin-bottom: 1rem;
  color: var(--color-brown);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.feature-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-images img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(49,40,28,0.16);
}

.feature-images img:last-child {
  margin-top: 2rem;
}

/* Leadership */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2.25rem;
}

.team-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--color-ivory);
  border: 1px solid rgba(139,74,46,0.12);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(49,40,28,0.08);
}

.team-photo,
.team-monogram {
  width: 160px;
  height: 180px;
  border-radius: 12px;
}

.team-photo {
  object-fit: cover;
  object-position: center top;
}

.team-monogram {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(139,74,46,0.94), rgba(212,93,34,0.88)),
    url('../images/gallery/gallery-7.webp') center/cover;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.team-card h3,
.product-card h3,
.bulk-card h3,
.info-card h3 {
  color: var(--color-brown);
  font-family: 'Playfair Display', serif;
}

.team-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1.45rem;
}

.team-role {
  margin-bottom: 0.9rem;
  color: var(--color-green);
  font-weight: 700;
}

.team-card-body > p:last-child {
  font-size: 0.92rem;
}

/* Capability/service rows */
.service-section,
.technology-detail {
  padding: 5rem 0;
  background: rgba(255,249,243,0.97);
}

.service-section.alt,
.technology-detail.alt,
.bulk-products,
.packaging-note,
.contact-form-section {
  background: var(--color-light-grey);
}

.service-row,
.tech-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

.service-row.reverse .service-media,
.tech-detail-row.reverse .tech-detail-image {
  order: 2;
}

.service-media img,
.tech-detail-image img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(49,40,28,0.16);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  color: var(--color-ivory);
  background: var(--color-green);
  border-radius: 50%;
  font-weight: 700;
}

.check-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 0.9rem;
  padding-left: 1.6rem;
}

.check-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-green);
  font-weight: 800;
}

/* Products */
.product-grid-compact,
.branded-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.branded-product-grid .product-card,
.product-grid-compact .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.branded-product-grid .product-card img,
.product-grid-compact .product-card img {
  height: 390px;
  object-fit: contain;
  background: #f8f3ec;
}

.product-grid-compact .product-card img {
  height: 330px;
}

.product-card h3 {
  margin: 0.4rem 0 0.55rem;
  font-size: 1.25rem;
}

.product-card .link {
  margin-top: auto;
}

.bulk-products,
.packaging-note,
.facility-gallery {
  padding: 5rem 0;
}

.bulk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bulk-card {
  padding: 1.65rem;
  background: var(--color-ivory);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(49,40,28,0.07);
}

.bulk-card i {
  margin-bottom: 0.75rem;
  color: var(--color-gold);
  font-size: 1.65rem;
}

.bulk-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.2rem;
}

.bulk-card p {
  font-size: 0.92rem;
}

.packaging-note-grid img {
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(49,40,28,0.14);
}

/* Facility gallery */
.facility-gallery {
  background: rgba(255,249,243,0.97);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.facility-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(49,40,28,0.1);
}

/* Contact */
.contact-info .info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.info-card {
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--color-light-grey);
  border-radius: 12px;
}

.info-card i {
  margin-bottom: 0.8rem;
  color: var(--color-gold);
  font-size: 2rem;
}

.info-card h3 {
  margin-bottom: 0.55rem;
}

.info-card a {
  color: var(--color-green);
  text-decoration: none;
}

.contact-form-section {
  padding: 5rem 0;
}

.contact-form-copy img {
  width: 100%;
  height: 235px;
  margin-top: 1.5rem;
  object-fit: cover;
  border-radius: 12px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 2rem;
  background: var(--color-ivory);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(49,40,28,0.09);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid #d9d0c5;
  border-radius: 6px;
  background: #fff;
  color: var(--color-charcoal);
  font: inherit;
}

.contact-form textarea,
.contact-form button {
  grid-column: 1 / -1;
}

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

.contact-form button {
  border: 0;
}

/* Events intentionally left open for future listings. */
.events-empty-space {
  min-height: 42vh;
  background: rgba(255,249,243,0.96);
}

.footer-inline-link {
  display: inline !important;
  margin: 0 !important;
}

/* Navigation spacing for the primary pages. */
.main-nav ul {
  gap: 0.9rem;
}

.main-nav a {
  font-size: 0.82rem;
  white-space: nowrap;
}

.mobile-menu-toggle {
  border: 0;
  background: transparent;
}

.mobile-nav {
  position: fixed;
  top: 102px;
  z-index: 99;
  max-height: calc(100vh - 102px);
  overflow-y: auto;
}

.mobile-nav a.active {
  color: var(--color-green);
}

@media (max-width: 1100px) {
  .main-nav,
  .cta-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .team-grid,
  .service-row,
  .tech-detail-row,
  .feature-band-grid,
  .packaging-note-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .service-row.reverse .service-media,
  .tech-detail-row.reverse .tech-detail-image {
    order: 0;
  }

  .contact-info .info-grid,
  .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .content-section,
  .intro-section,
  .feature-band,
  .service-section,
  .technology-detail,
  .bulk-products,
  .packaging-note,
  .facility-gallery,
  .contact-form-section {
    padding: 3.5rem 0;
  }

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

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

  .team-photo,
  .team-monogram {
    width: 100%;
    height: 260px;
  }

  .feature-images,
  .contact-info .info-grid,
  .facility-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .feature-images img:last-child {
    margin-top: 0;
  }

  .service-media img,
  .tech-detail-image img {
    height: 300px;
  }

  .branded-product-grid .product-card img,
  .product-grid-compact .product-card img {
    height: 340px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea,
  .contact-form button {
    grid-column: 1;
  }

  .mobile-nav {
    top: 90px;
    max-height: calc(100vh - 90px);
  }
}

.menu-symbol {
  display: block;
  color: var(--color-ivory);
  font-size: 1.65rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .nav-container {
    padding: 0.7rem 0;
  }
  .logo img {
    height: 45px;
    max-width: 245px;
  }
  .mobile-nav {
    top: 67px;
    max-height: calc(100vh - 67px);
  }
}


/* Patran Foods page transition */
@keyframes page-content-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes patran-logo-reveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.72);
    filter: blur(5px);
  }
  58% {
    opacity: 1;
    transform: translateY(0) scale(1.06);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes patran-ring-pulse {
  0% {
    opacity: 0;
    transform: scale(0.62);
  }
  45% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(1.28);
  }
}

@keyframes patran-loader-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, rgba(233, 165, 66, 0.2), transparent 42%),
    linear-gradient(145deg, #6f371d 0%, #8f5326 50%, #5d2b18 100%);
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.page-transition::before,
.page-transition::after {
  content: '';
  position: absolute;
  width: min(72vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.page-transition::before {
  transform: translate(-38%, -42%);
}

.page-transition::after {
  right: 0;
  bottom: 0;
  transform: translate(42%, 45%);
}

.page-transition.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: opacity 0.22s ease;
}

.page-transition-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(82vw, 620px);
  justify-items: center;
  gap: 1.4rem;
}

.page-transition-emblem {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 150px;
  place-items: center;
}

.page-transition-emblem img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 560px);
  height: auto;
  opacity: 0;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.28));
}

.page-transition-ring {
  position: absolute;
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  opacity: 0;
}

.page-transition-ring-two {
  border-color: rgba(233, 165, 66, 0.42);
}

.page-transition-loader {
  width: min(66vw, 300px);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.page-transition-loader span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, var(--color-gold), #ffffff);
  transform: scaleX(0);
  transform-origin: left center;
}

.page-transition.is-active .page-transition-emblem img {
  animation: patran-logo-reveal 0.76s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.page-transition.is-active .page-transition-ring-one {
  animation: patran-ring-pulse 0.9s ease-out 0.02s both;
}

.page-transition.is-active .page-transition-ring-two {
  animation: patran-ring-pulse 0.9s ease-out 0.18s both;
}

.page-transition.is-active .page-transition-loader span {
  animation: patran-loader-fill 0.78s cubic-bezier(0.4, 0, 0.2, 1) 0.14s both;
}

body.page-leaving {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.page-leaving) main {
    animation: page-content-enter 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@media (max-width: 640px) {
  .page-transition-inner {
    width: min(90vw, 520px);
  }

  .page-transition-emblem {
    min-height: 110px;
  }

  .page-transition-ring {
    width: 140px;
    height: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-transition {
    display: none;
  }
}

/* Floating WhatsApp contact button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  background: #1ebe5d;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: #ffffff;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 29px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
