/* ==========================================================================
   Estudio Aguirre & Asociados — demo site
   Self-contained stylesheet. Does not import or depend on Web Pop's own
   assets (/assets/css/main.css, components.css) in any way.
   ========================================================================== */

:root {
  --navy: #10263F;
  --navy-dark: #0A1B2C;
  --navy-soft: #1B3A5C;
  --ink: #1B2430;
  --text: #3A4048;
  --text-muted: #656C74;
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --border: #DCD5C6;
  --accent: #8A6D3B;
  --accent-soft: #EFE7D6;
  --focus: #1B3A5C;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", Arial, Helvetica, sans-serif;

  --radius-sm: 3px;
  --radius-md: 6px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }

a {
  color: var(--navy-soft);
}

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

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1.2em;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.header-inner,
.hero-inner,
.section-head,
.services-grid,
.trust-grid,
.team-grid,
.approach,
.contact-grid,
.footer-inner {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  text-align: left;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  max-width: 640px;
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75em;
}

.section-lede {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--navy-soft);
  border-color: var(--navy-soft);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: none;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 600;
  padding: 0.9em 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--accent);
}

/* ==========================================================================
   Header / nav
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--ink);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

@media (max-width: 840px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .nav-cta {
    margin-top: 1rem;
    align-self: flex-start;
  }
}

@media (min-width: 841px) {
  .nav-toggle {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.75rem;
}

.hero-figure {
  display: flex;
  justify-content: center;
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 20px 45px rgba(16, 38, 63, 0.16);
}

.approach-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: #fff;
  margin-bottom: 1rem;
}
.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Trust section
   ========================================================================== */

.trust {
  background: var(--navy);
  color: #EDEFF2;
  border-bottom: none;
}

.section-head--light .section-kicker {
  color: #C9A96A;
}
.section-head--light h2 {
  color: #fff;
}

.trust-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  border-left: 2px solid rgba(255,255,255,0.2);
  padding-left: 1.1rem;
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #C9A96A;
  color: #C9A96A;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.trust-item h3 {
  color: #fff;
  font-size: 1.05rem;
}

.trust-item p {
  color: #C7CDD6;
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Team / approach
   ========================================================================== */

.team-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 700px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: left;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.team-role {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

.approach {
  border-top: 1px solid var(--border);
  padding-top: clamp(2rem, 4vw, 2.75rem);
}

.approach h3 {
  margin-bottom: 1.5rem;
}

.approach-steps {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .approach-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.approach-steps li {
  display: flex;
  gap: 1rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.approach-steps h4 {
  margin-bottom: 0.35em;
}

.approach-steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-info .btn {
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

.contact-details {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: grid;
  gap: 1.1rem;
}

.contact-details dt {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.contact-details dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row--split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .form-row--split {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7em 0.85em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.contact-form textarea {
  resize: vertical;
}

.form-submit {
  width: 100%;
}

@media (min-width: 480px) {
  .form-submit {
    width: auto;
  }
}

.form-note {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
  padding-top: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: #C7CDD6;
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand-name {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.05rem;
  margin: 0.85rem 0 0.25rem;
}

.footer-meta {
  font-size: 0.9rem;
  color: #9AA4B2;
  margin-bottom: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: #C7CDD6;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-col li {
  font-size: 0.92rem;
  color: #9AA4B2;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7C8794;
}

.footer-attribution {
  opacity: 0.85;
}

.footer-attribution a {
  color: #9AA4B2;
  text-decoration: underline;
}
.footer-attribution a:hover,
.footer-attribution a:focus-visible {
  color: #fff;
}
