/* C&A Tax Solution — stylesheet */

:root {
  --navy: #092546;
  --navy-soft: #14365d;
  --navy-deep: #071c35;
  --gold: #d5a23f;
  --red: #c7202e;
  --cream: #f8f5ef;
  --ink: #182235;
  --muted: #667080;
  --cool-grey-1: #cbd3dd;
  --cool-grey-2: #dce4ee;
  --warm-1: #ddd6ca;
  --warm-2: #f9f7f2;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1140px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem);
}

p {
  margin: 0 0 1em;
}

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

.section {
  padding: 4rem 0;
}

.section--tight {
  padding: 3rem 0;
}

.section-head {
  max-width: 640px;
  margin: 0 0 2.5rem;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(213, 162, 63, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-on-dark {
  border-color: var(--cream);
  color: var(--cream);
}

.btn-on-dark:hover {
  background: var(--cream);
  color: var(--navy);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
}

.link-arrow:hover {
  color: var(--red);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(7, 28, 53, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-brand img {
  height: 44px;
  width: auto;
}

.nav-toggle {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-soft);
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
  gap: 0.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.nav-menu.is-open {
  max-height: 400px;
}

.nav-menu a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.12);
}

.nav-menu a:last-child {
  border-bottom: none;
}

.nav-menu .btn {
  margin-top: 0.75rem;
  align-self: flex-start;
}

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

  .nav-menu {
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    max-height: none;
    overflow: visible;
    padding: 0;
    gap: 1.75rem;
  }

  .nav-menu a {
    border-bottom: none;
    padding: 0.25rem 0;
  }

  .nav-menu a:not(.btn) {
    position: relative;
  }

  .nav-menu a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--gold);
    transition: right 0.2s ease;
  }

  .nav-menu a:not(.btn):hover::after {
    right: 0;
  }

  .nav-menu .btn {
    margin-top: 0;
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--warm-2) 0%, var(--cream) 100%);
  padding: 3rem 0 3.5rem;
}

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

.hero-copy .sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-portrait {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: var(--radius);
}

.commitment-card {
  width: 100%;
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(9, 37, 70, 0.25);
}

.commitment-card .eyebrow {
  color: var(--gold);
}

.commitment-card .card-title {
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 0.6em;
}

.commitment-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.commitment-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.commitment-num {
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.commitment-list strong {
  display: block;
  color: var(--cream);
}

.commitment-list span {
  color: var(--cool-grey-2);
  font-size: 0.95rem;
}

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

  .hero-visual {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Trust strip */
.trust-strip {
  background: var(--navy-soft);
  color: var(--cream);
}

.trust-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.trust-list li::before {
  content: "\2022";
  color: var(--gold);
  margin-right: 0.5rem;
}

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

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

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

.service-card {
  background: #fff;
  border: 1px solid var(--warm-1);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 16px 30px rgba(9, 37, 70, 0.12);
  transform: translateY(-3px);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.service-card p {
  color: var(--muted);
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

/* Nosotros */
.about {
  background: var(--navy);
  color: var(--cream);
}

.about h2 {
  color: var(--cream);
}

.about .eyebrow {
  color: var(--gold);
}

.about p {
  color: var(--cool-grey-2);
  max-width: 62ch;
}

.about-note {
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  color: var(--cream) !important;
  font-style: italic;
}

.about .link-arrow {
  color: var(--cream);
  border-bottom-color: var(--gold);
}

.about .link-arrow:hover {
  color: var(--gold);
}

/* Horarios */
.hours-grid {
  display: grid;
  gap: 2rem;
}

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

.hours-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(9, 37, 70, 0.08);
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--warm-1);
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table th {
  color: var(--navy);
  font-weight: 700;
}

.address-block {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--warm-1);
}

.address-block a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.map-frame {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  min-height: 280px;
  box-shadow: 0 10px 25px rgba(9, 37, 70, 0.08);
}

/* Contacto */
.contact {
  background: var(--warm-2);
}

.contact-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact-card .eyebrow {
  color: var(--gold);
}

.contact-card h2 {
  color: var(--cream);
}

.contact-card p {
  color: var(--cool-grey-2);
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: var(--cool-grey-2);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

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

.footer-brand img {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.footer-col h3 {
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--cool-grey-2);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(248, 245, 239, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* Privacy page */
.legal {
  padding: 3rem 0 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal p, .legal li {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
