/*
Theme Name: Agassiz Drain Tile
Theme URI: https://agassizdraintile.com
Author: Agassiz Drain Tile
Author URI: https://agassizdraintile.com
Description: A production-ready WordPress theme for Agassiz Drain Tile, Red River Valley's premier sub-surface drainage contractor.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agassiz
Tags: business, agriculture, one-page, custom-colors, custom-logo, custom-menu, featured-images
*/

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

:root {
  --green-deep:  #0A0F14;
  --green-mid:   #1a2530;
  --green-light: #4a98d3;
  --green-pale:  #d0e8f5;
  --gold:        #4a98d3;
  --gold-light:  #6db3e8;
  --gold-pale:   #eaf4fb;
  --soil:        #1a2530;
  --cream:       #f4f7fa;
  --white:       #FFFFFF;
  --ink:         #0A0F14;
  --gray:        #5a6470;
  --rule:        rgba(74,152,211,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─────── UTILITY ─────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
@media(max-width:768px){ .container{ padding: 0 20px; } }

/* ─────── TOP BAR ─────── */
.topbar {
  background: var(--green-deep);
  color: rgba(255,255,255,0.65);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 0;
  text-align: center;
}
.topbar a { color: var(--gold-light); text-decoration: none; font-weight: 700; }

/* ─────── NAV ─────── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 3px solid #0A0F14;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
}
.nav-logo img {
  height: 52px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex; align-items: center; gap: 0; list-style: none;
}
.nav-menu li a {
  display: block;
  padding: 0 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  line-height: 72px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-menu li a:hover { color: #4a98d3; border-bottom-color: #4a98d3; }
.nav-cta-btn {
  background: #4a98d3 !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 4px !important;
  line-height: normal !important;
  margin-left: 12px;
  border-bottom: none !important;
}
.nav-cta-btn:hover { background: #6db3e8 !important; color: var(--white) !important; }

/* WordPress nav menu overrides */
.nav-inner .menu { display: flex; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.nav-inner .menu li { list-style: none; }
.nav-inner .menu li a {
  display: block;
  padding: 0 18px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  line-height: 72px;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s;
}
.nav-inner .menu li a:hover { color: #4a98d3; border-bottom-color: #4a98d3; }
.nav-inner .menu li.menu-cta a {
  background: #4a98d3;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  line-height: normal;
  margin-left: 12px;
  border-bottom: none;
}
.nav-inner .menu li.menu-cta a:hover { background: #6db3e8; }

/* ─────── HERO — FULL BLEED MAGAZINE ─────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-left {
  background: #0A0F14;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: 64px 56px;
  position: relative; overflow: hidden;
}
/* grain texture overlay */
.hero-left::before {
  content:'';
  position:absolute; inset:0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.4; pointer-events: none;
}
.hero-vol {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold-light);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.hero-vol::before {
  content: '';
  display: block; width: 40px; height: 1px;
  background: var(--gold-light);
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900; line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  position: relative; z-index: 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-desc {
  font-size: 1rem; font-weight: 300; line-height: 1.75;
  color: rgba(255,255,255,0.7);
  max-width: 420px;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.btn-gold {
  background: #4a98d3; color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-gold:hover { background: #6db3e8; transform: translateY(-2px); }
.btn-outline-light {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 3px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-outline-light:hover { border-color: white; background: rgba(255,255,255,0.07); }

/* right side: single hero image */
.hero-right {
  overflow: hidden;
}
.hero-img-top {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-img-bottom {
  display: none;
}

/* ─────── RIBBON ─────── */
.ribbon {
  background: var(--gold);
  padding: 16px 48px;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.ribbon-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.ribbon-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #0A0F14;
  flex-shrink: 0;
}

/* ─────── INTRO STRIP ─────── */
.intro-strip {
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 56px 0;
}
.intro-inner {
  display: grid; grid-template-columns: 1fr 3px 1fr 3px 1fr;
  align-items: start; gap: 0;
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
}
.intro-divider { background: var(--rule); }
.intro-block { padding: 0 40px; }
.intro-block:first-child { padding-left: 0; }
.intro-block:last-child { padding-right: 0; }
.intro-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 900;
  color: var(--green-pale);
  line-height: 1; margin-bottom: 12px;
  user-select: none;
}
.intro-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 10px;
}
.intro-block p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ─────── SECTION COMMON ─────── */
.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.section-tag::after { content:''; flex: 1; height: 1px; background: var(--gold); max-width: 40px; }

.section-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  color: var(--green-deep);
}

/* ─────── GALLERY FEATURE ─────── */
.gallery-section {
  padding: 80px 0 0;
  background: var(--white);
}
.gallery-header {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: 40px;
  margin-bottom: 40px;
}
.gallery-header p { color: var(--gray); font-size: 0.95rem; line-height: 1.75; margin-top: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 320px 260px;
  gap: 4px;
}
.gallery-item {
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.large { grid-row: 1 / 3; }

/* label overlay on hover */
.gallery-item::after {
  content: attr(data-label);
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,30,12,0.75));
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 32px 16px 14px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

/* ─────── BENEFITS EDITORIAL ─────── */
.benefits-section {
  padding: 96px 0;
  background: var(--cream);
}
.benefits-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 80px;
  align-items: start;
}
.benefits-sidebar {
  position: sticky; top: 100px;
}
.benefits-sidebar p { color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin: 20px 0 32px; }
.benefits-sidebar a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-mid); text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}
.benefits-list { display: flex; flex-direction: column; gap: 0; }
.benefit-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 24px; align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.benefit-row:first-child { border-top: 1px solid var(--rule); }
.benefit-row:hover { background: var(--gold-pale); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.benefit-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--green-pale); line-height: 1;
  padding-top: 4px;
}
.benefit-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 8px;
}
.benefit-content p { font-size: 0.9rem; color: var(--gray); line-height: 1.7; }

/* ─────── ABOUT — IMAGE + TEXT ─────── */
.about-section {
  background: #0A0F14;
  display: grid; grid-template-columns: 1fr 1fr;
}
.about-img-wrap {
  position: relative; overflow: hidden;
  min-height: 600px;
}
.about-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  display: block;
  filter: brightness(0.8) saturate(0.9);
}
.about-text-panel {
  padding: 80px 64px;
  display: flex; flex-direction: column; justify-content: center;
}
.about-text-panel .section-tag { color: var(--gold-light); }
.about-text-panel .section-tag::after { background: var(--gold-light); }
.about-text-panel .section-headline { color: var(--white); margin-bottom: 24px; }
.about-text-panel p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem; line-height: 1.85;
  margin-bottom: 20px;
}
.about-text-panel p strong { color: var(--white); font-weight: 600; }

.about-facts {
  margin: 32px 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.about-fact {
  border-left: 3px solid var(--gold);
  padding-left: 16px;
}
.about-fact strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--gold-light);
}
.about-fact span {
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}

/* ─────── CONTACTS BAND ─────── */
.contacts-band {
  background: var(--gold-pale);
  border-top: 3px solid var(--gold);
  padding: 64px 0;
}
.contacts-header {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
}
.contacts-header .section-headline { font-size: 2rem; }
.contacts-header p { color: var(--gray); font-size: 0.9rem; }
.contacts-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
}
.contact-card {
  background: var(--gold-pale);
  padding: 28px 24px;
  transition: background 0.2s;
}
.contact-card:hover { background: var(--white); }
.contact-region {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--green-deep); margin-bottom: 12px;
}
.contact-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--green-mid); text-decoration: none;
  letter-spacing: 0.03em;
}
.contact-phone:hover { color: var(--gold); }

/* ─────── CTA FULL BLEED ─────── */
.cta-section {
  position: relative; overflow: hidden;
  padding: 100px 0;
  background: #4a98d3;
}
.cta-section::before { display: none; }
.cta-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
}
.cta-left .section-tag { color: rgba(255,255,255,0.75); }
.cta-left .section-tag::after { background: rgba(255,255,255,0.75); }
.cta-left .section-headline { color: var(--white); margin: 0 0 16px; }
.cta-left p { color: rgba(255,255,255,0.65); font-size: 1rem; line-height: 1.7; }
.cta-right {
  background: #0A0F14;
  border: none;
  border-radius: 6px; padding: 40px;
}
.cta-right h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 20px;
}
.cta-office {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem; line-height: 2; font-style: normal;
}
.cta-office a {
  color: #ffffff; text-decoration: none;
  font-size: 1.4rem; font-weight: 700;
  display: block; margin-top: 8px;
  font-family: 'Playfair Display', serif;
}
.cta-office a:hover { color: rgba(255,255,255,0.75); }
.cta-right .btn-gold {
  margin-top: 24px; width: 100%; text-align: center;
  background: #4a98d3 !important; color: #ffffff !important;
}
.cta-right .btn-gold:hover { background: #6db3e8 !important; }

/* ─────── FOOTER ─────── */
footer {
  background: var(--ink);
  padding: 56px 0 24px;
}
.footer-top {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-brand-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; margin-bottom: 16px; }
.footer-brand-logo p { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.75; }

footer h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 16px;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a {
  color: rgba(255,255,255,0.45); font-size: 0.875rem;
  text-decoration: none; transition: color 0.2s;
}
footer ul a:hover { color: var(--gold-light); }

.footer-address { font-style: normal; font-size: 0.875rem; color: rgba(255,255,255,0.45); line-height: 1.85; }
.footer-address a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-address a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding: 20px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.25);
  flex-wrap: wrap; gap: 8px;
}

/* ─────── RESPONSIVE ─────── */
@media(max-width:1024px){
  .hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 50vw; grid-template-rows: 1fr; }
  .hero-img-bottom { display: none; }
  .about-section { grid-template-columns: 1fr; }
  .about-img-wrap { min-height: 50vw; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-section::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .benefits-layout { grid-template-columns: 1fr; }
  .benefits-sidebar { position: static; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item.large { grid-row: auto; }
  .contacts-grid { grid-template-columns: 1fr 1fr; }
  .intro-inner { grid-template-columns: 1fr; }
  .intro-divider { display: none; }
  .intro-block { padding: 24px 0; border-bottom: 1px solid var(--rule); }
}
@media(max-width:640px){
  .nav-inner { padding: 0 20px; }
  .nav-menu { display: none; }
  .ribbon { gap: 20px; padding: 14px 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .contacts-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .about-facts { grid-template-columns: 1fr; }
  .gallery-header { grid-template-columns: 1fr; }
}

/* ─────── ANIMATIONS ─────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.hero-left > * { animation: fadeUp 0.7s ease both; }
.hero-vol       { animation-delay: 0.1s; }
.hero h1        { animation-delay: 0.25s; }
.hero-desc      { animation-delay: 0.4s; }
.hero-actions   { animation-delay: 0.55s; }

/* ─────── WP ADMIN BAR OFFSET ─────── */
.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav { top: 46px; } }
