/* ============================================================
   FLOOD IRRIGATION AZ — Global Stylesheet
   Brand: Sage #616F5D | Gray #737373 | Cream #FAF8F4
   Fonts: Montserrat (sans) + Old Standard TT (serif)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --sage:        #616F5D;
  --sage-dark:   #4A5647;
  --sage-mid:    #8FA389;
  --sage-light:  #EAF0E8;
  --sage-pale:   #F2F6F1;
  --gray:        #737373;
  --gray-light:  #B8B8B8;
  --cream:       #FAF8F4;
  --white:       #FFFFFF;
  --black:       #1A1A1A;
  --warm-tan:    #C8B89A;

  --font-sans:   'Montserrat', sans-serif;
  --font-serif:  'Old Standard TT', serif;

  --max-w:       1140px;
  --radius:      4px;
  --transition:  0.3s ease;
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--black);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.serif { font-family: var(--font-serif); font-style: italic; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
}

p { max-width: 68ch; }
p + p { margin-top: 1em; }

a { color: var(--sage-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sage); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--sage  { background: var(--sage-pale); }
.section--dark  { background: var(--sage-dark); color: var(--white); }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--sage-light);
  padding: 0 1.5rem;
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav__logo-mark {
  width: 38px;
  height: 38px;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-text span:first-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav__logo-text span:last-child {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--gray);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active { color: var(--sage-dark); }

.nav__cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-size: 0.72rem !important;
}

.nav__cta:hover { background: var(--sage-dark); color: var(--white) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sage-dark);
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn--primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn--outline:hover {
  background: var(--sage);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--sage-dark);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--sage-light);
  border-color: var(--sage-light);
}

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero__content {
  padding: 5rem 1.5rem 5rem 5vw;
  max-width: 620px;
}

.hero__content .eyebrow { margin-bottom: 1rem; }

.hero__content h1 {
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
}

.hero__content h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--sage);
}

.hero__content p {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sage-light);
}

.hero__stat-num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
}

.hero__stat-text {
  font-size: 0.8rem;
  color: var(--gray);
  max-width: 160px;
  line-height: 1.4;
}

.hero__image {
  height: 88vh;
  position: relative;
  overflow: hidden;
}

.hero__image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--sage-mid) 60%, var(--sage-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
}

.hero__image-placeholder span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
}

.hero__image-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.6;
}

/* ── Photo Placeholders ── */
.photo-placeholder {
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-mid) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  color: rgba(255,255,255,0.8);
}

.photo-placeholder span { font-size: 0.75rem; font-family: var(--font-serif); font-style: italic; }

/* ── Feature Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(97,111,93,0.12);
}

.card__img {
  height: 200px;
  width: 100%;
}

.card__body { padding: 1.5rem; }
.card__body .eyebrow { margin-bottom: 0.5rem; }
.card__body h3 { margin-bottom: 0.75rem; color: var(--sage-dark); }
.card__body p { font-size: 0.9rem; color: var(--gray); }

/* ── Stats Banner ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
  background: var(--sage-dark);
  color: var(--white);
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child { border-right: none; }

.stat-item__num {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sage-light);
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
  display: block;
}

/* ── Section Headers ── */
.section-header { margin-bottom: 3rem; }
.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { color: var(--sage-dark); margin-bottom: 1rem; }
.section-header p { color: var(--gray); font-size: 1rem; }

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col--reverse { direction: rtl; }
.two-col--reverse > * { direction: ltr; }

/* ── Lead Magnet Banner ── */
.lead-banner {
  background: var(--sage);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.lead-banner .eyebrow { color: var(--sage-light); margin-bottom: 1rem; }
.lead-banner h2 { color: var(--white); margin-bottom: 1rem; }
.lead-banner p { color: rgba(255,255,255,0.8); margin: 0 auto 2rem; max-width: 55ch; }

/* ── About Profile ── */
.profile {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4rem;
  align-items: start;
}

.profile__img {
  position: sticky;
  top: 90px;
  height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
}

.profile__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ── Accordion / FAQ ── */
.accordion { border-top: 1px solid var(--sage-light); }

.accordion__item { border-bottom: 1px solid var(--sage-light); }

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.accordion__trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--sage);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.accordion__item.open .accordion__trigger::after { transform: rotate(45deg); }

.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion__body-inner {
  padding: 0 0 1.25rem;
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ── Neighborhood Grid ── */
.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.neighborhood-chip {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage-dark);
  transition: all var(--transition);
}

.neighborhood-chip:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

/* ── Testimonial ── */
.testimonial {
  background: var(--sage-pale);
  border-left: 4px solid var(--sage);
  padding: 2rem 2.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.testimonial blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--sage-dark);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.testimonial cite {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
}

/* ── Resource Cards ── */
.resource-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: var(--sage);
  box-shadow: 0 4px 24px rgba(97,111,93,0.1);
}

.resource-card__icon {
  width: 52px;
  height: 52px;
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.resource-card__body h3 {
  font-size: 1rem;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
}

.resource-card__body p {
  font-size: 0.87rem;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

/* ── Contact Form ── */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--sage-light);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sage);
}

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

/* ── Footer ── */
.footer {
  background: var(--sage-dark);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand p {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-top: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 28ch;
}

.footer__col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer__col ul { list-style: none; }
.footer__col ul li + li { margin-top: 0.6rem; }
.footer__col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__col ul a:hover { color: var(--white); }

.footer__bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition);
}

.footer__social a:hover {
  border-color: var(--sage-mid);
  color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ── Page Header ── */
.page-header {
  background: var(--sage-dark);
  color: var(--white);
  padding: 5rem 0 4rem;
  text-align: center;
}

.page-header .eyebrow { color: var(--sage-light); margin-bottom: 1rem; }
.page-header h1 { color: var(--white); margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.7); margin: 0 auto; max-width: 55ch; }

/* ── Utility ── */
.text-center { text-align: center; }
.text-sage { color: var(--sage); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeUp 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__image { height: 50vw; min-height: 280px; order: -1; }
  .hero__content { padding: 3rem 1.5rem; }

  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .two-col--reverse { direction: ltr; }

  .profile { grid-template-columns: 1fr; }
  .profile__img { position: static; height: 320px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1rem 1.5rem 2rem;
    border-bottom: 1px solid var(--sage-light);
    z-index: 99;
    gap: 1rem;
  }
  .nav__hamburger { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}
