/* assets/css/components.css */

/* =========================================
   1. HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 243, 234, 0.95); /* Cream with slight transparency */
  backdrop-filter: blur(8px); /* Modern, premium frosted glass effect */
  border-bottom: 1px solid rgba(20, 52, 43, 0.08); /* Subtle forest green line */
  padding-block: var(--space-sm);
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-svg {
  height: 50px; /* Adjust this to scale the logo perfectly */
  width: auto;
  transition: var(--transition-smooth);
}

.logo-svg:hover {
  transform: scale(1.02); /* Subtle, elegant lift on hover */
}

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-forest);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-smooth);
}

/* Elegant underline animation on hover */
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-copper);
  transition: var(--transition-smooth);
}

.main-nav a:not(.btn):hover {
  color: var(--color-copper);
}

.main-nav a:not(.btn):hover::after {
  width: 100%;
}

/* =========================================
   2. BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px; /* Slight rounding, not a full pill (feels more premium) */
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-copper);
  color: var(--color-cream);
}

.btn-primary:hover {
  background-color: var(--color-forest);
  color: var(--color-cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 52, 43, 0.15);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--color-forest);
  color: var(--color-forest);
}

.btn-outline:hover {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
  min-height: 85vh; /* Takes up most of the screen, very impactful */
  display: flex;
  align-items: center;
  position: relative;
  /* Placeholder background until we add your farm photos */
  background: linear-gradient(135deg, var(--color-cream) 0%, #E8E4DB 100%);
  padding-block: var(--space-xl);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive typography */
  margin-bottom: var(--space-md);
  max-width: 800px;
  color: var(--color-forest);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

/* Optional: A small "eyebrow" text in mono font for that B2B premium feel */
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: var(--space-sm);
  display: block;
}

/* =========================================
   4. FOOTER
   ========================================= */
.site-footer {
  padding-block: var(--space-lg);
  margin-top: var(--space-xl);
  border-top: 1px solid rgba(247, 243, 234, 0.1);
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* =========================================
   5. SECTIONS & TYPOGRAPHY UTILITIES
   ========================================= */
.section {
  padding-block: var(--space-xl);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-copper);
  margin-bottom: var(--space-sm);
  display: block;
  font-weight: 500;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-lg);
  max-width: 700px;
}
/* Give "Our Standard" the exact same background as the Hero */
.process-section {
  background: linear-gradient(135deg, var(--color-cream) 0%, #E8E4DB 100%);
}
/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.process-card {
  padding: var(--space-md);
  background-color: var(--color-white);
  border: 1px solid rgba(20, 52, 43, 0.08);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.process-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 52, 43, 0.06);
  border-color: var(--color-copper);
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-forest);
}

/* Wholesale Specs Table (B2B Premium Feel) */
.specs-section {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

.specs-section h2 {
  color: var(--color-cream);
}

.specs-intro {
  color: #A3B18A; /* Muted light green for readability on dark bg */
  max-width: 600px;
  margin-bottom: var(--space-md);
}

.specs-table-wrapper {
  overflow-x: auto; /* Ensures table is scrollable on mobile */
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(247, 243, 234, 0.15);
  border-radius: 4px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.specs-table th,
.specs-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(247, 243, 234, 0.1);
}

.specs-table th {
  color: var(--color-copper);
  font-weight: 500;
  width: 35%;
  letter-spacing: 0.05em;
}

.specs-table td {
  color: var(--color-cream);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background-color: rgba(247, 243, 234, 0.03);
}

.specs-cta {
  text-align: center;
  margin-top: var(--space-md);
}

/* =========================================
   6. SCROLL REVEAL ANIMATION
   ========================================= */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   7. THE ISLAND / STORY SECTION
   ========================================= */
.island-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.island-image {
  background-color: #E8E4DB; /* Placeholder color matching our palette */
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-align: center;
  padding: var(--space-md);
}

.island-content h2 {
  margin-bottom: var(--space-md);
}

.island-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

/* The "Accidentally Organic" Highlight */
.highlight-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-copper);
  margin-top: var(--space-md);
  border-left: 3px solid var(--color-copper);
  padding-left: var(--space-sm);
  line-height: 1.4;
}

/* Mobile Responsiveness for the Island Section */
@media (max-width: 768px) {
  .island-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .island-image {
    order: -1; /* Forces the image to the top on mobile screens */
  }
}

/* =========================================
   8. TAMANU OIL SECTION
   ========================================= */
.tamanu-section .island-content {
  order: 1; /* Forces text to the left on desktop */
}
.tamanu-section .island-image {
  order: 2; /* Forces image to the right on desktop */
}

.tamanu-features {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-copper);
  letter-spacing: 0.05em;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* Mobile adjustment for Tamanu section */
@media (max-width: 768px) {
  .tamanu-section .island-content { order: 2; }
  .tamanu-section .island-image { order: 1; }
}

/* =========================================
   9. CONTACT FORM SECTION
   ========================================= */
.contact-section {
  background-color: var(--color-forest);
  color: var(--color-cream);
}

.contact-section h2 {
  color: var(--color-cream);
}

.contact-section p {
  color: #A3B18A;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-header {
  margin-bottom: var(--space-lg);
}

.inquiry-form {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.03);
  padding: var(--space-lg);
  border-radius: 4px;
  border: 1px solid rgba(247, 243, 234, 0.1);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-copper);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: transparent;
  border: 1px solid rgba(247, 243, 234, 0.2);
  border-radius: 2px;
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-copper);
  background-color: rgba(255, 255, 255, 0.05);
}

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

.inquiry-form .btn-primary {
  width: 100%;
  border: none;
  font-size: 1rem;
  padding: 1.2rem;
  cursor: pointer;
}

/* Mobile padding adjustment for form */
@media (max-width: 768px) {
  .inquiry-form {
    padding: var(--space-md);
  }
}

/* =========================================
   10. COMPACT ARTISTIC FOOTER
   ========================================= */
.site-footer {
  padding-block: 3rem; /* Tightened from var(--space-xl) for a compact feel */
  margin-top: var(--space-xl);
  background-color: var(--color-forest);
  color: var(--color-cream);
  border-top: 1px solid rgba(247, 243, 234, 0.08); /* Ultra-subtle top border */
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem; /* Tightened gap between elements */
}

/* --- The Artistic Slogan (Scaled down for compactness) --- */
.footer-artistic-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.footer-slogan {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2rem); /* Smaller, more refined than before */
  color: var(--color-cream);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.footer-slogan-translation {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5A6B63; /* Muted, subtle */
  margin: 0;
}

/* --- Social Media Links (Bulletproof Horizontal & Colors) --- */
.footer-social {
  display: flex !important;
  flex-direction: row !important; /* Forces strict side-by-side */
  justify-content: center;
  align-items: center;
  gap: 1.5rem; /* Slightly wider gap for breathing room */
  margin: 0;
  padding: 0;
}

.social-link {
  display: inline-flex !important; /* Ensures it behaves as a flex item */
  align-items: center;
  justify-content: center;
  text-decoration: none; /* Kills any default blue underlines */
  transition: transform 0.3s ease;
}

/* THE FIX: Explicitly set the SVG fill to your exact Cream hex code */
.social-link svg {
  width: 22px;
  height: 22px;
  fill: #F7F3EA !important; /* Explicit Cream - overrides browser blue */
  transition: fill 0.3s ease;
}

/* Hover effects */
.social-link:hover {
  transform: translateY(-3px); /* Subtle lift */
}

.social-link:hover svg {
  fill: #B0713A !important; /* Explicit Copper on hover */
}

/* --- The Legal Text --- */
.footer-legal {
  margin-top: 0.5rem;
}

.footer-legal p {
  font-family: var(--font-mono);
  font-size: 0.65rem; /* Slightly smaller for a clean, unobtrusive look */
  color: #8A9A92; /* Muted sage green - readable but still subtle */
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =========================================
   11. STEP 2 REFINEMENTS: THEMES, SPECS & HOVERS
   ========================================= */

/* --- A. Define the missing .theme-light utility --- */
.theme-light {
  background-color: #FCFAF6; /* A very soft, warm off-white to contrast with the main cream */
  color: var(--color-forest);
}

/* --- B. Light Mode for the Specs Table (For Tamanu page) --- */
.specs-section.theme-light {
  background-color: #FCFAF6;
  color: var(--color-forest);
}

.specs-section.theme-light h2 {
  color: var(--color-forest);
}

.specs-section.theme-light .specs-intro {
  color: var(--color-text-muted);
}

.specs-section.theme-light .specs-table-wrapper {
  border: 1px solid rgba(20, 52, 43, 0.1);
  background-color: var(--color-white);
}

.specs-section.theme-light .specs-table th {
  color: var(--color-copper);
}

.specs-section.theme-light .specs-table td {
  color: var(--color-forest);
}

.specs-section.theme-light .specs-table th,
.specs-section.theme-light .specs-table td {
  border-bottom: 1px solid rgba(20, 52, 43, 0.08);
}

.specs-section.theme-light .specs-table tr:hover td {
  background-color: rgba(20, 52, 43, 0.02);
}

/* --- C. Premium Hover Effects for Story/Island Images --- */
.story-image, 
.island-image {
  transition: var(--transition-smooth);
  border: 1px solid transparent; /* Prevents layout shift when border appears on hover */
}

.story-image:hover, 
.island-image:hover {
  transform: translateY(-4px); /* Subtle, elegant lift */
  box-shadow: 0 12px 24px rgba(20, 52, 43, 0.08); /* Soft, diffused shadow */
  border-color: rgba(176, 113, 58, 0.25); /* Very subtle copper border on hover */
}

/* --- D. Ensure Benefit Cards match Process Cards --- */
.benefit-card {
  transition: var(--transition-smooth);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(20, 52, 43, 0.06);
  border-left-color: var(--color-forest); /* Shifts the accent border to forest green on hover */
}

/* =========================================
   12. PREMIUM IMAGE HANDLING (STEP 4)
   ========================================= */

/* 1. Update the containers to clip the zoom effect */
.story-image, 
.island-image {
  overflow: hidden; /* CRITICAL: Keeps the image zoom inside the rounded corners */
  position: relative;
}

/* 2. The actual image styling */
.premium-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the 4:3 box perfectly without stretching or distorting */
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smooth, slow zoom */
}

/* 3. The elegant hover zoom effect */
.story-image:hover .premium-img, 
.island-image:hover .premium-img {
  transform: scale(1.05); /* Subtle 5% zoom - very premium, not overwhelming */
}
