/* VARIABLES */
:root {
  --primary: #1fa6eb;
  --white: #ffffff;
  --black: #000000;
  --translucent-dark: rgba(0,0,0,0.75);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* GLOBAL */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #fff; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0d4d91, #093769);
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(13, 77, 145, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0f5db3, #0b3f79);
}

/* Firefox Scrollbar Styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #0d4d91 rgba(255, 255, 255, 0.05);
}


/* NAVBAR */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.4s var(--ease);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 5%; }
.logo { height: 50px; border-radius: 50px;}
.nav-center { display: flex; gap: 2rem; }
.nav-center a { text-decoration: none; color: var(--white); font-weight: 500; transition: color .3s; }
.nav-center a:hover { color: var(--primary); }
.search-btn { background: none; border: none; color: var(--white); cursor: pointer; font-size: 1.2rem; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--white); border-radius: 1px; }
.nav-wrap.scrolled { background: var(--translucent-dark); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.08); transition: all 0.4s ease; }
.nav-wrap.scrolled .nav-center a, .nav-wrap.scrolled .search-btn svg path { color: var(--white); }
.nav-wrap.scrolled .nav-toggle span { background: var(--white); }

/* MOBILE */
@media (max-width: 900px) {
  .nav-center { display: none; }
  .search-btn { display: none; }
  .nav-toggle { display: flex; }
}


/* Hamburger button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Overlay background */
.overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Slide-in menu */
.slide-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  transition: right 0.35s ease;
  z-index: 1001;
}

/* Menu header */
.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 50px;
}

.slide-logo {
  max-height: 50px;
  border-radius: 50px;
}

.btn-close {
  font-size: 28px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* Menu links */
.menu-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.menu-links a {
  color: #fff;
  border-bottom: 2px solid white;
  padding: 5px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu-links a:hover {
  color: #1fabeb;
}

/* Active states */
.overlay-bg.active {
  opacity: 1;
  pointer-events: all;
}

.slide-menu.active {
  right: 0;
}

/* Hamburger animation to X */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile-first: everything is visible by default (as you have it) */

/* Desktop and larger screens: hide menu & toggle */
@media (min-width: 992px) {
  .menu-toggle {
    display: none; /* hide hamburger */
  }

  .overlay-bg {
    display: none; /* hide overlay */
  }

  .slide-menu {
    display: none; /* hide side menu */
  }
}


/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: url('images/e21.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.3);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 100px 20px 50px 20px;
  color: var(--white);
}
.hero-title { font-family: 'Montserrat', sans-serif; font-size: 3rem; margin-bottom: 2rem; }
.hero-description { display: flex; flex-direction: column; gap: 2rem; }
.hero-item { border-top: 1px solid rgba(255,255,255,0.3); padding-top: 1rem; animation: fadeInUp 1s ease forwards; }
.hero-item:first-child { border-top: none; padding-top: 0; }
.hero-item h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; margin-bottom: 0.6rem; color: var(--primary); }
.hero-item p { font-size: 1rem; line-height: 1.6; color: #f5f5f5; }

/* Animations */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-item h3 { font-size: 1.4rem; }
  .hero-item p { font-size: 0.95rem; }
}




/* MOVING TEXT SECTION */
.moving-text-section {
  position: relative;
  overflow: hidden;
  background: white;
  padding: 2.5rem 0;
  box-shadow: inset 0 0 40px rgba(13, 77, 145, 0.08);
  border-top: 1px solid rgba(13, 77, 145, 0.1);
  border-bottom: 1px solid rgba(13, 77, 145, 0.1);
}

.text-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}

.scrolling-text {
  display: flex;
  animation: scrollText 40s linear infinite;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: #1fa6eb;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scrolling-text span {
  display: inline-block;
  padding-right: 3rem; /* Adjust spacing between words */
}

@keyframes scrollText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Add interactive feel */
.moving-text-section::before,
.moving-text-section::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.moving-text-section::before {
  left: 0;
  background: linear-gradient(to right, white 20%, rgba(255,255,255,0));
}

.moving-text-section::after {
  right: 0;
  background: linear-gradient(to left, white 20%, rgba(255,255,255,0));
}



/* Mobile responsiveness */
@media (max-width: 900px) {
  .scrolling-text {
    font-size: 1.1rem;
    animation-duration: 60s;
  }
}

@media (max-width: 500px) {
  .scrolling-text {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
  }
}

/* Parlor Section */
.milking-parlors {
  background: #fff;
  padding: 60px 20px;
  font-family: 'Poppins', sans-serif;
}

.parlor-section {
  margin-bottom: 80px;
  text-align: center;
}

.parlor-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #000000;
  margin-bottom: 30px;
  font-weight: 700;
  position: relative; /* Needed for the pseudo-element */
}

/* Small underline with fading edges */
.parlor-title::after {
  content: "";
  display: block;
  width: 100px; /* Width of the underline */
  height: 4px; /* Thickness */
  background: linear-gradient(to right, transparent, #000000, transparent);
  margin: 8px auto 0; /* Centered horizontally and slight spacing below the text */
  border-radius: 2px; /* Rounded edges for smooth fade */
}


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

.image-wrapper {
  flex: 1 1 45%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 350px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-wrapper:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.18);
}

/* Responsive */
@media (max-width: 768px) {
  .parlor-images {
    flex-direction: column;
    gap: 15px;
  }

  .parlor-title {
    font-size: 1.5rem;
  }

  .image-wrapper {
    max-width: 100%;
  }
}

/* CTA SECTION */
.cta-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/eq\ \(1\).jpg') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(13,77,145,0.2); /* Branding color overlay */
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  color: #f1f1f1;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-btn {
  padding: 0.9rem 2rem;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
}

.services-btn {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

.services-btn:hover {
  background-color: #05233e;
  border-color: #05233e;
}

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

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

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .cta-title { font-size: 2rem; }
  .cta-subtitle { font-size: 1rem; }
  .cta-buttons { flex-direction: column; gap: 1rem; }
}



/* ---------- PREMIUM FOOTER STYLES ---------- */
.fd-footer { 
  --brand: #1fa6eb;
  --black: #020204;
  --glass: rgba(255,255,255,0.06);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Montserrat', sans-serif;
  color: #fff;
  position: relative;
  z-index: 40;
}

/* lighter, professional gradient footer */
.fd-footer .fd-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px 24px;
  background: linear-gradient(
    120deg,
    #ffffff 0%,        /* soft white */
    #1fabeb 70%         /* light professional blue */
  );
  box-shadow: 0 10px 40px rgba(3, 6, 18, 0.15), /* lighter shadow for airy feel */
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}


/* grid layout */
.fd-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

/* Brand column */
.fd-brand { text-align: left; }
.fd-logo { height: 56px; display:block; margin-bottom:18px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); transform: scale(2.5); margin-left: 30px; }
.fd-blurb {
  color: rgba(0, 0, 0, 0.92);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 420px;
  font-weight: 300;
}

/* Social icons */
.fd-socials { display:flex; gap:12px; margin-top:6px; }
.fd-socials .social {
  display:inline-flex;
  width:40px;height:40px;border-radius:10px;align-items:center;justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: #000000; text-decoration:none; border:1px solid rgba(255,255,255,0.06);
  transition: transform .22s cubic-bezier(.2,.9,.3,1), box-shadow .22s;
}
.fd-socials .social:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(13,77,145,0.28);
  background: linear-gradient(90deg, rgba(255,255,255,0.06), var(--brand));
}

/* Columns: links */
.fd-col h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #000000;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(255, 255, 255, 0) 50%,
    rgba(255, 255, 255, 0.4) 100%
  );
  background-position: bottom;
  background-size: 100% 2px;
  background-repeat: no-repeat;
}

.fd-links ul, .fd-resources ul { list-style:none; padding:0; margin:0; }
.fd-links li, .fd-resources li { margin-bottom:10px; }
.fd-links a, .fd-resources a {
  color: rgba(0, 0, 0, 0.9);
  text-decoration:none;
  font-weight: 500;
  transition: color .18s;
}
.fd-links a:hover, .fd-resources a:hover { color: var(--brand); text-decoration: underline; text-underline-offset:4px; }

/* CTA column */
.fd-cta .fd-cta-box {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.04);
  padding: 18px;
  border-radius: 12px;
}
.fd-cta h4 { margin-top:0; margin-bottom:6px; }
.fd-cta .muted { color: rgba(0, 0, 0, 0.8); font-size:0.95rem; margin-bottom:12px; }

/* newsletter form */
.fd-news { display:flex; gap:10px; align-items:center; margin-bottom:12px; }
.fd-news input[type="email"]{
  flex:1; padding:10px 12px; border-radius:10px; border:1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35); color:#000000; outline:none; font-size:0.95rem;
}
.fd-news input::placeholder { color: rgba(255,255,255,0.6); }
.fd-news .btn-ghost {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), var(--brand));
  color:#000000; padding:10px 14px; border-radius:10px; border:none; cursor:pointer;
  font-weight:600;
  transition: transform .18s, box-shadow .18s;
}
.fd-news .btn-ghost:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(13,77,145,0.26); }

/* policy links */
.policies { display:flex; gap:12px; margin-top:8px; flex-wrap:wrap; }
.policies a { color: rgba(255,255,255,0.75); font-size:0.92rem; text-decoration:none; }
.policies a:hover { color: var(--brand); text-decoration:underline; }

/* large divider */
.fd-divider {
  width: 90%;
  margin: 28px auto;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-radius:2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset;
}

/* bottom row */
.fd-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 10px 6px;
}
.fd-bottom p, .fd-bottom a { color: rgba(0, 0, 0, 0.7); font-size:0.92rem; text-decoration:none; }
.fd-legal { display:flex; gap:16px; align-items:center; }

/* small helpers */
.muted { color: rgba(0, 0, 0, 0.8); }
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fd-top { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .fd-brand { order: 1; grid-column: 1 / -1; }
  .fd-cta { order: 4; grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .fd-container { padding: 36px 18px;}
  .fd-top { grid-template-columns: 1fr; gap:18px; }
  .fd-brand { text-align: center; }
  .fd-blurb { margin: 0 auto 12px; max-width: 100%; }
  .fd-socials { justify-content: center; }
  .fd-col h4 { text-align: center; }
  .fd-links ul, .fd-resources ul { display:flex; flex-direction:column; gap:8px; align-items:center; }
  .fd-bottom { flex-direction: column; gap:8px; text-align:center; }
  .fd-divider { width: 100%; }
}



/* === PAGE TRANSITION OVERLAY === */
#page-transition {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);

  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* === CORNERS === */
.corner {
  position: absolute;
  width: 50%;
  height: 50%;
/* Glassmorphism style */ background: rgba(255, 255, 255, 0.15);-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transform: scale(0);
  transform-origin: center;
  transition: transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Corner positions */
.corner-top-left {
  top: 0;
  left: 0;
  transform-origin: top left;
}
.corner-top-right {
  top: 0;
  right: 0;
  transform-origin: top right;
}
.corner-bottom-left {
  bottom: 0;
  left: 0;
  transform-origin: bottom left;
}
.corner-bottom-right {
  bottom: 0;
  right: 0;
  transform-origin: bottom right;
}

/* Active animation */
#page-transition.active .corner {
  transform: scale(1);
}

/* === LOGO === */
.logo-wrapper {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease 1.2s, transform 1s ease 1.2s;
}

#page-transition.active .logo-wrapper {
  opacity: 1;
  transform: scale(1);
}

.logo-wrapper img {
  width: 300px;
  max-width: 75vw;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* === FADE OUT === */
#page-transition.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .logo-wrapper img {
    width: 160px;
  }
}



.phone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1px 2px; /* vertical and horizontal spacing */
  margin-top: 20px;
  justify-content: flex-start;
}

.phone-links h3 {
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: #000000;
}

.phone-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #000;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  padding: 10px 16px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.phone-links a i {
  font-size: 20px;
  color: #1fa6eb;
}

.phone-links a:hover {
  background-color: #1fa6eb;
  color: #fff;
}

.phone-links a:hover i {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .phone-links {
    justify-content: center;
    gap: 10px 15px;
  }
  .phone-links a {
    width: 100%;
    max-width: 300px;
    padding: 12px 16px;
    font-size: 16px;
  }
  .phone-links a i {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .phone-links a {
    font-size: 15px;
    padding: 10px 14px;
    gap: 8px;
  }
  .phone-links a i {
    font-size: 16px;
  }
}
