/* ===========================
   GOATS R US — Global Styles
   =========================== */

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

:root {
  --green-dark:   #4a5c1a;
  --green-mid:    #6b7c2e;
  --green-light:  #8fa640;
  --green-pale:   #e8edcc;
  --cream:        #f7f4ed;
  --brown:        #5c3d1e;
  --text-dark:    #2b2b2b;
  --text-mid:     #4a4a4a;
  --white:        #ffffff;
  --shadow:       0 2px 16px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }

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

/* ===========================
   NAV
   =========================== */

nav {
  background: var(--green-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
  /* shown when logo image is available */
}

.nav-logo-text {
  font-size: 1.55rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 0.01em;
  font-family: 'Georgia', serif;
  line-height: 1;
}

.nav-logo-text span {
  color: var(--green-light);
}

/* Hide text fallback when image is present */
.nav-logo:has(.nav-logo-img) .nav-logo-text {
  display: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green-light);
}

/* Hamburger — mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===========================
   HERO
   =========================== */

.hero {
  position: relative;
  background: var(--green-dark);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(30,45,8,0.82) 0%, rgba(30,45,8,0.45) 60%, rgba(30,45,8,0.1) 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 640px;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 36px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.btn {
  display: inline-block;
  background: var(--green-light);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-mid); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  margin-left: 14px;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* ===========================
   PAGE HERO (inner pages)
   =========================== */

.page-hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 72px 24px 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
  font-family: Arial, sans-serif;
}

/* ===========================
   SECTIONS
   =========================== */

section { padding: 72px 24px; }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--green-dark);
  margin-bottom: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 1.2rem;
  color: var(--green-dark);
  margin-bottom: 10px;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ===========================
   INTRO SPLIT (Home)
   =========================== */

.intro-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.intro-split img {
  border-radius: 4px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.intro-text .section-label { margin-bottom: 8px; }

/* ===========================
   SERVICES GRID (Home preview)
   =========================== */

.services-section { background: var(--green-pale); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.service-card:hover { transform: translateY(-3px); }

.service-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.service-card h3 { font-size: 1.05rem; }

.service-card p {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ===========================
   VIDEO SECTION
   =========================== */

.video-section { background: var(--green-dark); color: var(--white); }

.video-section h2 { color: var(--white); }

.video-section .section-label { color: var(--green-light); }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
  margin-top: 32px;
}

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

/* ===========================
   WHY GOATS (Home)
   =========================== */

.why-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-mid);
}

.why-list li::before {
  content: "✓";
  color: var(--green-light);
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===========================
   CTA BAND
   =========================== */

.cta-band {
  background: var(--brown);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}

.cta-band h2 { color: var(--white); margin-bottom: 12px; }

.cta-band p {
  font-family: Arial, sans-serif;
  opacity: 0.88;
  margin-bottom: 28px;
}

/* ===========================
   ABOUT PAGE
   =========================== */

.about-story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-story img {
  border-radius: 4px;
  box-shadow: var(--shadow);
  width: 100%;
}

.unique-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.unique-card {
  background: var(--white);
  border-left: 4px solid var(--green-light);
  border-radius: 4px;
  padding: 24px 20px;
  box-shadow: var(--shadow);
}

.unique-card h3 { font-size: 1rem; margin-bottom: 8px; }
.unique-card p {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
}

.team-section { background: var(--green-pale); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.team-card {
  background: var(--white);
  border-radius: 4px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-icon { font-size: 2.4rem; margin-bottom: 12px; }
.team-card h3 { font-size: 1rem; color: var(--green-dark); }
.team-card p { font-family: Arial, sans-serif; font-size: 0.88rem; color: var(--text-mid); }

/* ===========================
   SERVICES PAGE
   =========================== */

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.service-item {
  background: var(--white);
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-light);
  transition: transform 0.2s;
}
.service-item:hover { transform: translateY(-3px); }

.service-item .service-icon { font-size: 2.2rem; margin-bottom: 14px; }
.service-item h3 { font-size: 1.1rem; margin-bottom: 10px; }
.service-item p {
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.65;
}

.green-box {
  background: var(--green-dark);
  color: var(--white);
  border-radius: 4px;
  padding: 40px 36px;
  margin-top: 56px;
}

.green-box h2 { color: var(--white); margin-bottom: 14px; }
.green-box p { font-family: Arial, sans-serif; opacity: 0.9; }

/* ===========================
   CONTACT PAGE
   =========================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 8px; }

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
}

.contact-detail .icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-detail strong { display: block; color: var(--green-dark); margin-bottom: 2px; }
.contact-detail span { color: var(--text-mid); font-size: 0.95rem; }

.contact-form-wrap {
  background: var(--white);
  border-radius: 4px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 { margin-bottom: 24px; font-size: 1.2rem; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0d0c0;
  border-radius: 3px;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fdfcf8;
  transition: border-color 0.2s;
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: #1e2a08;
  color: rgba(255,255,255,0.75);
  padding: 48px 24px 28px;
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { line-height: 1.6; opacity: 0.75; }

footer h4 {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; }
  .nav-links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--green-dark); padding: 16px 24px 24px; gap: 18px; }
  .nav-toggle { display: flex; }

  .intro-split,
  .about-story,
  .contact-layout { grid-template-columns: 1fr; }

  .intro-split img { height: 260px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  .form-row { grid-template-columns: 1fr; }

  .btn-outline { margin-left: 0; margin-top: 10px; }
}
