/*
Theme Name: JarJar Services
Theme URI: https://jarjarservices.com
Author: Jarluen Leija
Author URI: https://jarjarservices.com
Description: Custom theme for JarJar Services — Web Design & Automations in the Rio Grande Valley
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: jarjar
*/

/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
:root {
  --bg: #f8f7f4;
  --white: #ffffff;
  --ink: #1a1a2e;
  --ink-light: #4a4a6a;
  --teal: #1a7a7a;
  --teal-light: #e8f5f5;
  --teal-mid: #2a9090;
  --warm: #e07b39;
  --warm-light: #fef3ec;
  --warm-mid: #f09050;
  --border: #e2e0da;
  --nav-h: 72px;
  --r: 14px;
  --max-w: 1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { line-height: 1.7; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

.p-lead { font-size: 1.125rem; color: var(--ink-light); line-height: 1.75; }
.p-body { color: var(--ink-light); line-height: 1.75; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.divider { height: 1px; background: var(--border); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.text-center { text-align: center; }
.max-680 { max-width: 680px; margin-left: auto; margin-right: auto; }
.max-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.max-760 { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(248,247,244,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--teal);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.nav-logo .dot { color: var(--warm); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--ink-light);
  padding: 8px 14px; border-radius: 8px; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.current-menu-item { color: var(--teal); background: var(--teal-light); }
.nav-links .nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: 10px 20px !important; border-radius: 50px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 12px rgba(26,122,122,.25);
  transition: background .2s, transform .15s !important;
}
.nav-links .nav-cta:hover { background: var(--teal-mid) !important; transform: translateY(-1px); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; display: block; }
.nav-drawer {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(248,247,244,.97); backdrop-filter: blur(12px);
  z-index: 99; flex-direction: column; padding: 32px 24px; gap: 8px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 1.1rem; font-weight: 600; color: var(--ink);
  padding: 14px; border-radius: 10px; text-decoration: none;
  transition: background .2s;
}
.nav-drawer a:hover { background: var(--teal-light); color: var(--teal); }
.nav-drawer .nav-cta {
  margin-top: 12px; text-align: center;
  background: var(--teal); color: var(--white) !important;
  border-radius: 12px !important; padding: 16px !important;
}

/* page offset for fixed nav */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  text-decoration: none; border: none; transition: all .2s;
  font-family: 'Sora', sans-serif; line-height: 1;
}
.btn-primary {
  background: var(--teal); color: var(--white);
  box-shadow: 0 4px 20px rgba(26,122,122,.3);
}
.btn-primary:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(26,122,122,.4); color: var(--white); }
.btn-warm {
  background: var(--warm); color: var(--white);
  box-shadow: 0 4px 20px rgba(224,123,57,.3);
}
.btn-warm:hover { background: var(--warm-mid); transform: translateY(-2px); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-outline:hover { background: var(--teal-light); color: var(--teal); }
.btn-ghost {
  background: transparent; color: var(--ink-light);
  font-weight: 600; font-size: .9rem;
  padding: 0; display: inline-flex; align-items: center; gap: 6px;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--teal); }
.btn-white {
  background: var(--white); color: var(--teal); font-weight: 700;
  padding: 14px 30px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover { transform: translateY(-2px); color: var(--teal); }

/* ============================================================
   TAGS / BADGES
   ============================================================ */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-light); color: var(--teal);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px; margin-bottom: 20px;
}
.tag-warm { background: var(--warm-light); color: var(--warm); }
.tag-white { background: rgba(255,255,255,.2); color: rgba(255,255,255,.9); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border); padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.card-bg { background: var(--bg); }

.icon-box {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.icon-teal { background: var(--teal-light); }
.icon-warm { background: var(--warm-light); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, #0f5f5f 100%);
  border-radius: 24px; padding: 72px 60px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.cta-band::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px; background: rgba(255,255,255,.04); border-radius: 50%;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.8); margin: 16px 0 32px; font-size: 1.1rem; }

/* ============================================================
   CHECK LIST
   ============================================================ */
ul.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-light); font-size: .95rem; }
ul.check-list li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 1.3rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.footer-logo .dot { color: var(--warm); }
.site-footer p { font-size: .875rem; line-height: 1.7; }
.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 18px; letter-spacing: .04em; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { color: rgba(255,255,255,.6); font-size: .875rem; text-decoration: none; transition: color .2s; }
.footer-links li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: .8rem; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; font-family: 'Sora', sans-serif;
  font-size: .9rem; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 4px rgba(26,122,122,.1);
}
textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 48px 32px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  h1 { font-size: 2rem; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
