/* ==========================================================================
   Palaya Shrimp Farm - Master Stylesheet (Pure Static Architecture)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Patua+One&family=Raleway:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Roboto:wght@400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --primary: #181818;
  --secondary: #fdfdfd;
  --accent: #adcd3f;
  --accent-hover: #7b9523;
  --palaya-blue: #4575b9;
  --navy: #001035;
  --navy-deep: #001444;
  --navy-light: #0d275e;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #181818;
  --text-muted: #556068;
  --text-light: #d2d2d2;
  --border-color: #e2e8f0;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 35px rgba(0, 0, 0, 0.06);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

/* Screen reader text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.5rem 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Header & Hero
   ========================================================================== */
.site-header {
  position: relative;
  background-color: #0b3d68;
  background-image: url('../images/header-bg.jpg');
  background-position: center -140px;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 40px 20px 80px 20px;
  color: #ffffff;
  overflow: hidden;
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 50, 0.2);
  pointer-events: none;
}

.header-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.logo-wrapper {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.logo-img {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.02);
}

/* Nav Menu */
.nav-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 24px;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-item a {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fdfdfd;
  padding: 6px 16px;
  border-radius: 25px;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.nav-item.active a {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(173, 205, 63, 0.4);
}

/* Mobile Hamburger */
.menu-toggle {
  display: none;
  background: #868686;
  color: #fdfdfd;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Wave Shape Divider */
.header-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  direction: ltr;
  z-index: 1;
  pointer-events: none;
  transform: rotate(180deg);
}

.header-wave svg {
  display: block;
  position: relative;
  left: 50%;
  width: calc(130% + 1.3px);
  height: 98px;
  transform: translateX(-50%) rotateY(180deg);
}

.header-wave .shape-fill {
  fill: var(--bg-page);
}

/* ==========================================================================
   Main Content Container
   ========================================================================== */
.main-wrapper {
  flex: 1;
  max-width: 1000px;
  width: 100%;
  margin: -35px auto 50px auto;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.content-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 45px 50px 40px 50px;
  border: 1px solid var(--border-color);
}

.page-title {
  font-family: 'Patua One', serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* ==========================================================================
   Media Coverage Page (Carousel & Embeds)
   ========================================================================== */
.media-carousel-section {
  margin-bottom: 3.5rem;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(50% - 10px);
  min-width: calc(50% - 10px);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.slide-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: #111;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-img {
  transform: scale(1.06);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}

.carousel-slide:hover .play-overlay {
  background: rgba(0, 0, 0, 0.15);
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--palaya-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  padding-left: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.carousel-slide:hover .play-btn-circle {
  transform: scale(1.15);
  background: var(--accent);
  color: #ffffff;
}

/* Carousel Controls */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.carousel-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.carousel-arrow:hover:not(:disabled) {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
  transform: scale(1.05);
}

.carousel-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  padding: 0;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--palaya-blue);
  width: 24px;
  border-radius: 10px;
}

/* Facebook Video Section */
.fb-video-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px dashed var(--border-color);
}

.section-subtitle {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.responsive-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: var(--shadow-card);
}

.responsive-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Virtual Tour Page
   ========================================================================== */
.featured-video-section {
  margin-bottom: 2.5rem;
}

.quote-section {
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.palaya-quote {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.palaya-quote::before {
  content: '“';
  font-family: 'Patua One', serif;
  font-size: 5rem;
  line-height: 0;
  position: relative;
  top: 25px;
  color: var(--palaya-blue);
  opacity: 0.6;
  display: block;
}

.quote-text {
  font-family: 'Patua One', serif;
  font-size: 1.65rem;
  line-height: 1.35;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.quote-author {
  font-family: 'Raleway', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--palaya-blue);
  font-style: normal;
  display: inline-block;
}

/* Interactive Playlist Component */
.playlist-widget {
  margin-top: 2.5rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 1fr 340px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.playlist-screen {
  background: #000000;
  position: relative;
  display: flex;
  flex-direction: column;
}

.playlist-screen-player {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.playlist-screen-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-current-info {
  padding: 1rem 1.25rem;
  background: #111827;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-current-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-sidebar {
  background: #f8fafc;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.playlist-header {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playlist-header-title {
  font-family: 'Patua One', serif;
  font-size: 1.2rem;
  color: var(--primary);
}

.playlist-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #edf2f7;
  padding: 2px 10px;
  border-radius: 20px;
}

.playlist-tracks {
  list-style: none;
  overflow-y: auto;
  flex: 1;
}

.playlist-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
  cursor: pointer;
  transition: var(--transition);
}

.playlist-track:hover {
  background: #edf2f7;
}

.playlist-track.active {
  background: #e2e8f0;
  border-left: 4px solid var(--palaya-blue);
}

.track-thumb-box {
  position: relative;
  width: 80px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}

.track-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-thumb-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  color: #ffffff;
  font-size: 0.85rem;
  transition: var(--transition);
}

.playlist-track.active .track-thumb-icon {
  background: rgba(69, 117, 185, 0.7);
}

.track-details {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-track.active .track-name {
  color: var(--palaya-blue);
  font-weight: 700;
}

.track-duration {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Privacy Policy Page
   ========================================================================== */
.policy-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.75;
}

.policy-content h3 {
  font-family: 'Patua One', serif;
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.policy-content p {
  margin-bottom: 1.25rem;
}

.policy-content a {
  color: var(--palaya-blue);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--navy);
  background-image: url('../images/footer-bg.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
  padding: 50px 20px 25px 20px;
  margin-top: auto;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 16, 53, 0.8);
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
}

.footer-brand h4, .footer-social h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-light);
}

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

.social-icons-wrapper {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(173, 205, 63, 0.4);
}

.footer-bottom {
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   Video Lightbox Modal
   ========================================================================== */
.modal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-lightbox.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--accent);
}

.modal-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.modal-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    background-position: center -44px;
    padding-bottom: 75px;
  }
  
  .header-wave svg {
    width: calc(160% + 1.3px);
    height: 94px;
  }

  .playlist-widget {
    grid-template-columns: 1fr 280px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 25px 15px 55px 15px;
    background-position: center top;
  }

  .header-wave svg {
    width: calc(230% + 1.3px);
    height: 72px;
  }
  
  .logo-wrapper {
    max-width: 320px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
    padding: 15px;
    gap: 0.75rem;
    margin-top: 10px;
  }
  
  .nav-menu.show {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-item a {
    display: block;
    width: 100%;
    padding: 8px 12px;
  }
  
  .main-wrapper {
    margin-top: -25px;
    padding: 0 12px;
  }
  
  .content-card {
    padding: 30px 20px 25px 20px;
  }
  
  .page-title {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
  }
  
  .carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
  }
  
  .slide-media {
    height: 220px;
  }
  
  .quote-text {
    font-size: 1.3rem;
  }
  
  .playlist-widget {
    grid-template-columns: 1fr;
  }
  
  .playlist-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    max-height: 360px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-social {
    text-align: center;
  }
  
  .social-icons-wrapper {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  
  .modal-close-btn {
    top: 10px;
    right: 15px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
  }
}
