/* =============================================
   JUANA LALOCA — SHARED STYLES
   ============================================= */

:root {
  --navy: #2c4a6e;
  --navy-dark: #1e3650;
  --gold: #b5924a;
  --text: #2a2a2a;
  --text-muted: #666;
  --text-light: #888;
  --bg-white: #ffffff;
  --bg-grey: #f4f3f0;
  --bg-light: #f9f8f6;
  --border: #e2e0da;
  --card-shadow: 0 1px 4px rgba(0,0,0,0.07);
  --card-shadow-hover: 0 4px 16px rgba(0,0,0,0.11);
  --radius: 8px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-white);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: .4rem; }
p { color: var(--text-muted); margin-bottom: 1rem; font-weight: 300; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; }

/* ---- NAVBAR ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
  height: 62px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding-bottom: 2px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a.active {
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
}
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--text);
}

/* ---- HERO (homepage) ---- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex; align-items: center;
  background: url('hero-image.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(20,35,55,.72) 0%, rgba(20,35,55,.55) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 680px;
  padding: 4rem 3rem;
  color: #fff;
}
.hero-content h1 { color: #fff; margin-bottom: 1.2rem; }
.hero-content p { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--bg-grey);
  padding: 4rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-dark); }
.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { background: #9a7a39; }
.btn-full { width: 100%; justify-content: center; }

/* ---- SECTIONS ---- */
.section { padding: 5rem 0; }
.section-white { background: var(--bg-white); }
.section-grey { background: var(--bg-grey); }

.section-title {
  text-align: center;
  margin-bottom: .6rem;
}
.section-title-left {
  margin-bottom: 1.2rem;
}
.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* ---- CARDS ---- */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s, transform .2s;
}
.section-grey .card { background: var(--bg-white); }
.card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); }
.card-icon {
  margin-bottom: .75rem;
  display: flex; align-items: center;
  width: 42px; height: 42px;
  background: var(--bg-grey);
  border-radius: 8px;
  justify-content: center;
  flex-shrink: 0;
}
.card-icon svg {
  width: 20px; height: 20px;
  stroke: var(--navy);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.info-icon svg {
  width: 18px; height: 18px;
  stroke: var(--navy);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.learn-more {
  display: inline-block;
  margin-top: .8rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  transition: gap .2s;
}
.learn-more:hover { text-decoration: underline; }

/* ---- TAGS ---- */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.tag {
  padding: .4rem .9rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--bg-white);
}

/* ---- CREDENTIALS TEXT ---- */
.credentials-text {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  font-size: .975rem;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--navy);
  color: #fff;
  padding: 4.5rem 2rem;
  text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: .8rem; }
.cta-banner p { color: rgba(255,255,255,.82); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- TIMELINE ---- */
.timeline { max-width: 680px; margin: 0 auto; }
.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  min-width: 52px;
  text-align: right;
  padding-top: .9rem;
}
.timeline-card {
  flex: 1;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--card-shadow);
}
.timeline-card h3 { margin-bottom: .2rem; font-size: 1rem; }
.timeline-card p { font-size: .875rem; margin: 0; }

/* ---- SERVICE CATEGORY ---- */
.service-category-header {
  margin-bottom: 2rem;
}
.category-title {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .4rem;
}

/* ---- CONTACT PAGE ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.contact-form-wrap h2 {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
}
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color .2s;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form-group textarea { resize: vertical; }
.form-success {
  padding: 1.2rem;
  background: #edf5ee;
  border: 1px solid #b2d8b6;
  border-radius: var(--radius);
  color: #2e6b34;
  font-size: .95rem;
}

.contact-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  background: var(--bg-grey);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.info-item {
  display: flex; gap: .9rem; align-items: flex-start;
  margin-bottom: .9rem;
}
.info-item:last-child { margin-bottom: 0; }
.info-icon { font-size: 1.1rem; margin-top: .15rem; }
.info-item strong { display: block; font-size: .875rem; color: var(--text); margin-bottom: .1rem; }
.info-item p { font-size: .875rem; margin: 0; }

/* ---- FOOTER ---- */
.footer {
  background: var(--bg-grey);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { font-size: .875rem; color: var(--text-muted); margin: .4rem 0 .8rem; }
.footer-badges { display: flex; gap: .5rem; }
.badge {
  padding: .25rem .65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: .75rem;
  color: var(--text-muted);
  background: var(--bg-white);
}
.footer-links h4, .footer-contact h4 {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .8rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.footer-links a:hover { color: var(--navy); }
.footer-contact p { font-size: .875rem; color: var(--text-muted); margin-bottom: .3rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-light);
}
.footer-bottom a { color: var(--text-light); }
.footer-bottom a:hover { color: var(--navy); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: .5rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .cards-grid-2 { grid-template-columns: 1fr; }

  .hero-content { padding: 3rem 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .timeline-item { flex-direction: column; gap: .5rem; }
  .timeline-year { text-align: left; padding-top: 0; }
}
