/* AL MUNQETH – match updated almunqeth.com */
:root {
  --color-theme: #969696;
  --color-text: #333;
  --color-text-muted: #555;
  --color-bg: #fafafa;
  --color-white: #fff;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.skip-link {
  position: absolute;
  top: -3rem;
  left: 0.5rem;
  z-index: 1001;
  padding: 0.5rem 1rem;
  background: var(--color-text);
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.4);
  backdrop-filter: saturate(180%) blur(10px);
}

.header.scrolled {
  background: rgba(0,0,0,0.85);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.9;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  opacity: 0.85;
}

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/contain no-repeat;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width:  min(280px, 85vw);
    background: #1a1a1a;
    flex-direction: column;
    padding: 4rem 1.5rem 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.25s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3d3329 0%, #2a231c 100%);
  background-size: cover;
  background-position: center;
  background-image: url('https://images.unsplash.com/photo-1548550023-2bdb3c5beed7?w=1920&q=80');
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin: 0 0 0.75rem;
}

.tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Section common */
.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-theme);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 2rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-theme);
  margin: 1rem auto 0;
}

/* About – half image, half content (matches Why Us / site design) */
.about {
  padding: 0;
  background: var(--color-white);
}

.about-accent {
  height: 4px;
  background: var(--color-theme);
  width: 100%;
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  height: 420px;
}

.about-image {
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
}

.about-content {
  padding: 3rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: #1a1a1a;
  overflow-y: auto;
}

.about-heading {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
}

.about-subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0 0 1.25rem;
}

.about-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  text-align: left;
}

@media (max-width: 768px) {
  .about-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .about-image img {
    min-height: 280px;
  }

  .about-content {
    padding: 2.5rem 1.5rem;
  }

  .about-text {
    font-size: 0.95rem;
  }
}

/* Services */
/* Services – headline only by default, details on hover */
.services {
  position: relative;
  padding: 4rem 2rem;
  background: #2a231c;
}

.services::before {
  display: none;
}

.services-title {
  position: relative;
  font-family: var(--font-body);
  font-size: 2.25rem;
  font-weight: 700;
  color: #e07a2e;
  text-align: center;
  margin: 0 0 2.5rem;
  text-transform: uppercase;
}

.services-title#projects {
  margin-top: 3.5rem;
  margin-bottom: 2.5rem;
}

.services-grid {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Projects: 3 cards top row, 3 cards bottom row */
.projects-grid,
.services-grid.projects-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
  gap: 1.25rem;
}

.service-card {
  position: relative;
  min-height: 160px;
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.service-card:hover {
  background-color: rgba(0,0,0,0.5);
}

/* Service cards (first grid): title always visible at bottom */
.services-grid:not(.projects-grid) .service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.service-card-headline-visible {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  margin-bottom: 0;
}

.services-grid:not(.projects-grid) .service-card:hover .service-card-headline-visible {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.services-grid:not(.projects-grid) .service-card .service-card-hover {
  justify-content: center;
}

.service-card-general-trading {
  background: rgba(0,0,0,0.35) url('https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=600&q=80') center/cover no-repeat;
}

.service-card-general-trading:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-tetra {
  background: rgba(0,0,0,0.35) url('images/tetra-card-bg.png') center/cover no-repeat;
}

.service-card-tetra:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-industry {
  background: rgba(0,0,0,0.35) url('images/industry-card-bg.png') center/cover no-repeat;
}

.service-card-industry:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-construction {
  background: rgba(0,0,0,0.35) url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=600&q=80') center/cover no-repeat;
}

.service-card-construction:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-wan-feed {
  background: rgba(0,0,0,0.25) url('images/wan-feed-card-bg.png') center/cover no-repeat;
}

.service-card-wan-feed:hover {
  background-color: rgba(0,0,0,0.78);
}

.service-card-broiler-eggs {
  background: rgba(0,0,0,0.2) url('images/broiler-eggs-card-bg.png') center/cover no-repeat;
}

.service-card-broiler-eggs:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-table-eggs {
  background: rgba(0,0,0,0.2) url('images/table-eggs-card-bg.png') center/cover no-repeat;
}

.service-card-table-eggs:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-hatchery {
  background: rgba(0,0,0,0.2) url('images/hatchery-card-bg.png') center/cover no-repeat;
}

.service-card-hatchery:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-qiabashi {
  background: rgba(0,0,0,0.2) url('images/qiabashi-card-bg.png') center/cover no-repeat;
}

.service-card-qiabashi:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-dcp {
  background: rgba(0,0,0,0.2) url('images/dcp-card-bg.png') center/cover no-repeat;
}

.service-card-dcp:hover {
  background-color: rgba(0,0,0,0.75);
}

.service-card-hover {
  position: absolute;
  inset: 0;
  padding: 1.25rem 1rem;
  background: rgba(0,0,0,0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card:hover .service-card-hover {
  opacity: 1;
  visibility: visible;
}

.service-card-headline {
  text-align: center;
  margin-bottom: 0.75rem;
}

.service-card-headline-visible {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.service-card-title {
  display: block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-card-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-white);
  margin: 0.5rem auto 0;
}

.service-card-details {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.service-card-details p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.95);
  text-align: center;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Projects: keep 3-up 3-bottom until narrow */
@media (max-width: 768px) {
  .services-grid.projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid.projects-grid {
    grid-template-columns: 1fr;
  }
}

.card-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.75rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-theme);
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

/* Projects */
/* Why Us */
/* Why Us – half image, half text (full layout like About Us) */
.why-us {
  padding: 0;
  background: var(--color-white);
}

.why-us-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  height: 420px;
}

.why-us-image {
  overflow: hidden;
}

.why-us-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  display: block;
  object-fit: cover;
}

.why-us-content {
  padding: 3rem 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: #1a1a1a;
  overflow-y: auto;
}

.why-us-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem;
}

.why-us-content p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  color: rgba(255,255,255,0.92);
}

.why-us-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .why-us-wrap {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
  }

  .why-us-image img {
    min-height: 280px;
  }

  .why-us-content {
    padding: 2.5rem 1.5rem;
  }

  .why-us-content p {
    font-size: 0.95rem;
  }
}

/* Team – coral section, white text, centered */
.team {
  padding: 3rem 2rem;
  background: #e07a5f;
}

.team-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white);
  text-align: center;
  margin: 0 0 0.75rem;
}

.team-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-white);
  margin: 0 auto;
}

.team-content {
  max-width: 860px;
  margin: 1.75rem auto 0;
  text-align: left;
}

.team-text {
  margin: 0 0 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-white);
  max-width: 100%;
}

.team-ceo-block {
  text-align: right;
}

.team-ceo {
  margin: 0 0 0.25rem;
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 400;
}

.team-ceo-name {
  margin: 0;
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 600;
}

/* Events */
/* Events and News – card grid */
.events {
  padding: 4rem 2rem;
  background: #f8f7f5;
}

.events-header {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.events-header .section-title {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.events-header .section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--color-theme);
  margin: 0 auto;
}

.events-intro {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Events slider – fade transition, progress bar, autoplay-friendly */
.events-slider {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

.events-slider-track {
  position: relative;
  min-height: 480px;
}

.events-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.events-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.event-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  height: 480px;
}

.event-card-image {
  flex: 0 0 65%;
  min-height: 0;
  overflow: hidden;
  background: #e8e6e3;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.event-card-body {
  flex: 0 0 35%;
  min-height: 0;
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.event-card-date {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-theme);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.event-card-title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.event-card-body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Controls: prev/next + progress bar in one row */
.events-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.events-slider-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  background: var(--color-white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.events-slider-btn:hover {
  background: #f5f5f5;
  border-color: var(--color-theme);
  color: var(--color-theme);
}

.events-slider-btn svg {
  width: 18px;
  height: 18px;
}

/* Progress bar: clickable segments */
.events-slider-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 280px;
  flex: 1;
  justify-content: center;
}

.events-slider-segment {
  flex: 1;
  min-width: 0;
  height: 4px;
  border: none;
  padding: 0;
  border-radius: 2px;
  background: #ddd;
  cursor: pointer;
  transition: background 0.25s ease;
}

.events-slider-segment:hover {
  background: #bbb;
}

.events-slider-segment.is-active {
  background: var(--color-theme);
  height: 5px;
}

/* Slide counter (optional, minimal) */
.events-slider-counter {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  min-width: 3ch;
  text-align: center;
}

@media (max-width: 600px) {
  .events-slider {
    max-width: 100%;
    padding: 0 1rem;
  }

  .events-slider-controls {
    gap: 1rem;
  }

  .events-slider-progress {
    max-width: 200px;
  }
}

/* Contact */
.contact {
  padding: 4rem 2rem;
  background: var(--color-white);
}

.contact-wrap {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  font-size: 1rem;
}

.contact-info p {
  margin: 0 0 0.75rem;
}

.contact-address {
  white-space: pre-line;
}

.contact-info a {
  color: var(--color-theme);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form-wrap {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
}

.contact-form {
  max-width: 100%;
}

.form-success {
  padding: 1rem;
  margin-bottom: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  border-radius: 4px;
  font-weight: 600;
}

.form-success.hidden {
  display: none;
}

.field {
  position: relative;
  margin-bottom: 1.25rem;
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s;
}

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

.field label {
  position: absolute;
  left: 0.5rem;
  top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.2s, font-size 0.2s, color 0.2s;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  transform: translateY(-1.75rem) scale(0.85);
  color: var(--color-theme);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  background: var(--color-text);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn:hover {
  background: #222;
}

.btn:active {
  opacity: 0.9;
}

@media (max-width: 700px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 2rem;
  text-align: center;
  background: #eee;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-contact {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem 2.5rem;
}

.footer-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.footer-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--color-theme);
}

.footer-copyright {
  margin: 1.25rem auto 0;
  max-width: 1200px;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

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

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

@media (max-width: 500px) {
  .footer-contact {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  width: 100%;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
  min-width: 200px;
}

.cookie-banner .btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .hero {
    min-height: 75vh;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner .btn {
    align-self: center;
  }
}
