/*
Theme Name: Earles & Associates
Theme URI: https://www.ascensionlandsurveying.com
Author: Earles & Associates, LLC
Author URI: https://www.ascensionlandsurveying.com
Description: Custom theme for Earles & Associates, LLC — Professional Land Surveying, Gonzales, Louisiana.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: earles
*/

:root {
  --blue: #5b7fc4;
  --blue-dark: #3d5fa0;
  --blue-light: #7a9bd4;
  --navy: #0d1b3e;
  --navy-mid: #1a2f5a;
  --navy-light: #1e3a6e;
  --dark: #1a1a2e;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray: #4a5568;
  --gray-light: #dce6f5;
  --muted: #9aafd4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  color: var(--dark);
  overflow-x: hidden;
}

/* ── NAV ── */
.ea-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13,27,62,0.97);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 90px;
  border-bottom: 1px solid rgba(91,127,196,0.2);
}
.ea-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ea-nav-logo img {
  height: 76px;
  width: auto;
  background: #fff;
  border-radius: 4px;
  padding: 3px 6px;
}
.ea-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.ea-nav-links a {
  color: #c5d4e8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.ea-nav-links a:hover { color: #fff; }
.ea-nav-cta {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.ea-nav-cta:hover { background: var(--blue-dark); }
/* ── NAV INNER CONTAINER ── */
.ea-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 0 3rem;
}


/* ── HERO ── */
.ea-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 90px;
}
.ea-hero-bg {
  position: absolute; inset: 0;
  background: var(--navy);
}
.ea-hero-photo {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.ea-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(91,127,196,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,127,196,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.ea-hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(91,127,196,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ea-hero-bar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--blue);
}
.ea-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem;
  max-width: 780px;
  animation: fadeUp 0.9s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.ea-hero-eyebrow {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.25rem;
}
.ea-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.ea-hero-title em { color: var(--blue); font-style: normal; }
.ea-hero-sub {
  font-size: 17px;
  color: #b0c4de;
  max-width: 560px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
  font-weight: 300;
}
.ea-hero-btns { display: flex; gap: 14px; justify-content: center; }
.ea-btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.ea-btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); color: #fff; }
.ea-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 13px 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.ea-btn-outline:hover { border-color: rgba(255,255,255,0.7); transform: translateY(-1px); color: #fff; }

/* ── STATS ── */
.ea-stats {
  background: var(--blue);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.ea-stat {
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.ea-stat:last-child { border-right: none; }
.ea-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ea-stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

/* ── SHARED SECTION STYLES ── */
.ea-section-eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
  color: var(--blue);
}
.ea-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ea-section-body {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-weight: 300;
}
.ea-blue-divider {
  height: 3px;
  background: var(--blue);
  width: 48px;
  margin-bottom: 1.5rem;
}
section { scroll-margin-top: 64px; }

/* ── ABOUT ── */
.ea-about {
  background: var(--off-white);
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ea-about-image {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  height: 420px;
}
.ea-about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ea-about-image::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 60px; height: 60px;
  border-top: 3px solid var(--blue);
  border-left: 3px solid var(--blue);
  border-radius: 6px 0 0 0;
  z-index: 2;
}
.ea-about-image::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 60px; height: 60px;
  border-bottom: 3px solid var(--blue);
  border-right: 3px solid var(--blue);
  border-radius: 0 0 6px 0;
  z-index: 2;
}

/* ── SERVICES ── */
.ea-services {
  background: var(--dark);
  padding: 6rem 3rem;
}
.ea-services-header { text-align: center; margin-bottom: 3rem; }
.ea-services-header .ea-section-eyebrow { color: var(--muted); }
.ea-services-header .ea-section-title { color: #fff; }
.ea-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.ea-service-card {
  background: rgba(91,127,196,0.08);
  border: 1px solid rgba(91,127,196,0.2);
  border-radius: 6px;
  padding: 1.75rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ea-service-card:hover {
  background: rgba(91,127,196,0.15);
  border-color: rgba(91,127,196,0.45);
  transform: translateY(-3px);
}
.ea-service-icon {
  width: 44px; height: 44px;
  background: rgba(91,127,196,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.ea-service-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.ea-service-card p { font-size: 13px; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* ── PARALLAX BREAK ── */
.ea-parallax {
  background: var(--navy-light);
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
}
.ea-parallax h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.ea-parallax p { font-size: 15px; color: #b0c4de; line-height: 1.8; font-weight: 300; }
.ea-parallax-image {
  border-radius: 6px;
  overflow: hidden;
  height: 280px;
  position: relative;
}
.ea-parallax-image img { width: 100%; height: 100%; object-fit: cover; }
.ea-parallax-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  z-index: 2;
}

/* ── SOCIAL / FACEBOOK ── */
.ea-social { background: var(--off-white); padding: 6rem 3rem; }
.ea-social-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.ea-fb-embed {
  background: #fff;
  border: 1px solid #dce6f5;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(91,127,196,0.1);
}
.ea-fb-header {
  background: #1877f2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
}
.ea-fb-icon {
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ea-fb-name { font-size: 14px; font-weight: 600; color: #fff; }
.ea-fb-sub { font-size: 11px; color: rgba(255,255,255,0.75); }
.ea-fb-follow {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 5px 12px;
  border-radius: 3px;
  font-size: 12px;
  text-decoration: none;
}
.ea-fb-post { padding: 16px 18px; border-bottom: 1px solid #eef2f8; }
.ea-fb-post:last-of-type { border-bottom: none; }
.ea-fb-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ea-fb-avatar {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; font-weight: 600;
  flex-shrink: 0;
}
.ea-fb-post-name { font-size: 13px; font-weight: 600; color: var(--dark); margin: 0; }
.ea-fb-post-time { font-size: 11px; color: var(--muted); }
.ea-fb-post-text { font-size: 13px; color: var(--gray); line-height: 1.65; }
.ea-fb-cta {
  display: block; text-align: center;
  padding: 13px;
  background: #f0f6ff;
  font-size: 13px; font-weight: 600;
  color: #1877f2;
  text-decoration: none;
  border-top: 1px solid #dce6f5;
}
.ea-fb-cta:hover { background: #e2efff; color: #1877f2; }
.ea-fb-page-btn {
  display: inline-block;
  background: #1877f2;
  color: #fff;
  font-size: 14px; font-weight: 600;
  padding: 11px 22px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 2rem;
}
.ea-fb-page-btn:hover { background: #1560c0; color: #fff; }
.ea-why-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 1.25rem; }
.ea-why-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 5px; flex-shrink: 0;
}
.ea-why-item h4 { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.ea-why-item p { font-size: 13px; color: var(--gray); line-height: 1.65; font-weight: 300; }

/* ── GALLERY ── */
.ea-gallery { background: #fff; padding: 6rem 3rem; }
.ea-gallery-header { text-align: center; margin-bottom: 2.5rem; }
.ea-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
}
.ea-gallery-item {
  border-radius: 6px;
  overflow: hidden;
  height: 200px;
  position: relative;
  transition: transform 0.2s;
}
.ea-gallery-item:hover { transform: scale(1.02); }
.ea-gallery-item.tall { grid-row: span 2; height: 412px; }
.ea-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ea-gallery-item span {
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(13,27,62,0.75);
  color: #fff;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── CONTACT ── */
.ea-contact {
  background: var(--dark);
  padding: 6rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.ea-contact-info h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 42px; font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.ea-contact-info > p { font-size: 14px; color: var(--muted); margin-bottom: 2rem; font-weight: 300; }
.ea-contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 1.1rem; }
.ea-contact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-top: 6px; flex-shrink: 0;
}
.ea-contact-detail p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.ea-contact-detail strong {
  display: block; color: #fff;
  font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 2px;
}
.ea-contact-detail a { color: var(--muted); text-decoration: none; }
.ea-contact-detail a:hover { color: var(--blue-light); }
.ea-contact-form label {
  display: block;
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 5px; margin-top: 1rem;
}
.ea-contact-form label:first-child { margin-top: 0; }
.ea-contact-form input,
.ea-contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(91,127,196,0.25);
  border-radius: 4px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
}
.ea-contact-form input:focus,
.ea-contact-form textarea:focus { border-color: var(--blue); }
.ea-contact-form textarea { height: 110px; resize: none; }
.ea-form-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 4px;
  font-size: 14px; font-weight: 600;
  font-family: 'Barlow', sans-serif;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: background 0.2s;
}
.ea-form-submit:hover { background: var(--blue-dark); }

/* ── FOOTER ── */
.ea-footer {
  background: #080d1c;
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(91,127,196,0.15);
}
.ea-footer p { font-size: 12px; color: #4a5a74; }
.ea-footer-links { display: flex; gap: 1.75rem; }
.ea-footer-links a { font-size: 12px; color: #4a5a74; text-decoration: none; }
.ea-footer-links a:hover { color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .ea-nav-inner { padding: 0 1.5rem; }
  .ea-nav-links { display: none; }
  .ea-about, .ea-contact, .ea-parallax, .ea-social-inner { grid-template-columns: 1fr; }
  .ea-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ea-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ea-gallery-item.tall { grid-row: span 1; height: 200px; }
  .ea-stats { grid-template-columns: repeat(2, 1fr); }
  .ea-about, .ea-services, .ea-gallery, .ea-social, .ea-contact { padding: 4rem 1.5rem; }
}

@media (max-width: 600px) {
  .ea-services-grid, .ea-gallery-grid { grid-template-columns: 1fr; }
  .ea-hero-title { font-size: 42px; }
  .ea-footer { flex-direction: column; gap: 1rem; text-align: center; }
}
