/* SMFP — Sociedad Mexicana de Fotógrafos Profesionales
   Visual DNA: high-contrast B&W logo, Lato + Lora, navy #124a6b, red #de0405,
   sharp geometry, photography-first full-bleed imagery.
*/

:root {
  --smfp-navy: #124a6b;
  --smfp-navy-deep: #0a2f45;
  --smfp-red: #de0405;
  --smfp-ink: #1a1a1a;
  --smfp-muted: #5a5a5a;
  --smfp-line: #d8d8d8;
  --smfp-paper: #ffffff;
  --smfp-wash: #f4f6f8;
  --smfp-charcoal: #111111;
  --smfp-font-sans: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --smfp-font-serif: "Lora", Georgia, "Times New Roman", serif;
  --smfp-max: 1120px;
  --smfp-header-h: 72px;
  --smfp-radius: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--smfp-font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--smfp-ink);
  background: var(--smfp-paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--smfp-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--smfp-red);
}

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

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

hr {
  border: 0;
  border-top: 1px solid var(--smfp-line);
  margin: 2rem 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ——— Layout ——— */
.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

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

.container--narrow {
  max-width: 760px;
}

/* ——— Header / Nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--smfp-charcoal);
  color: #fff;
  border-bottom: 3px solid var(--smfp-red);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--smfp-header-h);
  max-width: var(--smfp-max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo:hover {
  color: #fff;
}

.site-logo img {
  height: 42px;
  width: auto;
}

.site-logo__text {
  font-family: var(--smfp-font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.2;
}

.site-logo__text span {
  display: block;
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.7;
  font-size: 0.62rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  position: absolute;
  left: 11px;
  transition: transform 0.2s ease, top 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  border-bottom-color: var(--smfp-red);
}

/* ——— Home hero ——— */
.home-hero {
  position: relative;
  min-height: min(88vh, 820px);
  background: var(--smfp-charcoal);
  color: #fff;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.home-hero__slides {
  position: absolute;
  inset: 0;
  display: grid;
}

.home-hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: smfp-fade 18s infinite;
}

.home-hero__slides img:nth-child(1) { animation-delay: 0s; }
.home-hero__slides img:nth-child(2) { animation-delay: 6s; }
.home-hero__slides img:nth-child(3) { animation-delay: 12s; }

@keyframes smfp-fade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  30% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

.home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 16, 22, 0.05) 0%, rgba(8, 16, 22, 0.15) 35%, rgba(8, 16, 22, 0.72) 100%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.25rem 3rem;
  max-width: var(--smfp-max);
  margin: 0 auto;
  width: 100%;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.home-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.85rem;
}

.home-hero h1 {
  font-family: var(--smfp-font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  max-width: 16ch;
  margin: 0 0 0.75rem;
}

.home-hero__lead {
  max-width: 38ch;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.5rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--smfp-font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--smfp-radius);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--primary {
  background: var(--smfp-red);
  color: #fff;
  border-color: var(--smfp-red);
}

.btn--primary:hover {
  background: #b50304;
  color: #fff;
  border-color: #b50304;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: #fff;
  color: var(--smfp-ink);
  border-color: #fff;
}

.btn--navy {
  background: var(--smfp-navy);
  color: #fff;
  border-color: var(--smfp-navy);
}

.btn--navy:hover {
  background: var(--smfp-navy-deep);
  color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section--wash {
  background: var(--smfp-wash);
}

.section--navy {
  background: var(--smfp-navy-deep);
  color: #fff;
}

.section--navy h2,
.section--navy h3,
.section--navy a {
  color: #fff;
}

.section--navy a:hover {
  color: #ffb3b3;
}

.section__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--smfp-red);
  margin-bottom: 0.65rem;
}

.section--navy .section__label {
  color: #ff8a8a;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 1.5rem;
}

.section__intro {
  max-width: 52ch;
  color: var(--smfp-muted);
  margin: -0.5rem 0 2rem;
}

.section--navy .section__intro {
  color: rgba(255, 255, 255, 0.78);
}

/* ——— Gallery strip ——— */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-card {
  position: relative;
  min-height: 320px;
  background: #222 center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.75) 100%);
}

.gallery-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.25rem;
}

.gallery-card__title {
  font-family: var(--smfp-font-serif);
  font-size: 1.25rem;
  margin: 0;
  color: #fff;
}

.gallery-card__title a {
  color: #fff;
  text-decoration: none;
}

.gallery-card__title a:hover {
  color: #ffd0d0;
}

/* ——— Events ——— */
.event-list {
  display: grid;
  gap: 1.5rem;
}

.event-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--smfp-line);
}

.event-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.event-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

.event-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.event-item__meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smfp-muted);
  margin-bottom: 0.75rem;
}

/* ——— Contact / content helpers ——— */
.prose {
  font-size: 1.02rem;
}

.prose .center,
.prose h3.center,
.prose h4.center {
  text-align: center;
}

.statute-list,
.contact-board {
  list-style: none;
  padding: 0;
  margin: 0;
}

.statute-list li,
.contact-board li {
  border-top: 1px solid var(--smfp-line);
}

.statute-list a,
.contact-board a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  font-weight: 600;
}

.statute-list a:hover,
.contact-board a:hover {
  color: var(--smfp-red);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-card {
  background: var(--smfp-wash);
  border-left: 4px solid var(--smfp-red);
  padding: 1.5rem 1.5rem 1.35rem;
}

.contact-card strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--smfp-navy);
  margin-bottom: 0.35rem;
}

.contact-card p {
  margin: 0 0 1rem;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

/* ——— Interior pages ——— */
.page-banner {
  background:
    linear-gradient(135deg, var(--smfp-navy-deep) 0%, var(--smfp-navy) 55%, #1a5f82 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  border-bottom: 3px solid var(--smfp-red);
}

.page-banner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.5rem;
}

.page-banner p {
  margin: 0;
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 2.5rem;
  align-items: start;
  padding: 2.75rem 0 4rem;
}

.page-header {
  margin-bottom: 1.75rem;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0;
}

.sidebar-widget {
  background: var(--smfp-wash);
  border-top: 3px solid var(--smfp-navy);
  padding: 1.15rem 1.15rem 0.85rem;
}

.sidebar-widget h3 {
  font-family: var(--smfp-font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.85rem;
}

.sidebar-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-widget li {
  border-top: 1px solid var(--smfp-line);
}

.sidebar-widget a {
  display: block;
  padding: 0.65rem 0;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--smfp-ink);
}

.sidebar-widget a:hover {
  color: var(--smfp-red);
}

/* ——— Article content ——— */
.romlicontainer {
  font-size: 1.05rem;
  line-height: 1.7;
}

.romlicontainer > *:first-child {
  margin-top: 0;
}

.romlicontainer h2,
.romlicontainer h3,
.romlicontainer h4 {
  margin-top: 1.6em;
}

.romlicontainer img {
  margin: 1rem 0;
}

.romlicontainer blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--smfp-red);
  color: var(--smfp-muted);
}

.romlicontainer .table-scroll,
.romlicontainer .v0irc4f__table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1rem 0;
}

.romlicontainer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
  margin: 0;
}

.romlicontainer th,
.romlicontainer td {
  border: 1px solid var(--smfp-line);
  padding: 0.55rem 0.7rem;
  vertical-align: top;
  text-align: left;
  word-break: break-word;
}

.romlicontainer th {
  background: var(--smfp-wash);
  font-weight: 700;
  color: var(--smfp-navy-deep);
}

@media (max-width: 767px) {
  .romlicontainer .table-scroll table,
  .romlicontainer .v0irc4f__table-scroll table {
    width: max-content;
    min-width: 100%;
  }
}

/* ——— Links / blog blocks from templates ——— */
.site-links-block,
.site-articles-block {
  clear: both;
}

.site-links-block {
  background: var(--smfp-paper);
  padding: 2rem 0;
  border-top: 1px solid var(--smfp-line);
}

.site-articles-block {
  background: var(--smfp-wash);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--smfp-charcoal);
  color: rgba(255, 255, 255, 0.78);
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: #ffb3b3;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.site-footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.site-footer__brand img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.site-footer__brand strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.site-footer__brand p {
  margin: 0;
  font-size: 0.92rem;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__social a:hover {
  border-color: var(--smfp-red);
  background: var(--smfp-red);
  color: #fff;
}

.site-footer__meta {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.15rem;
  font-size: 0.85rem;
}

.site-footer__sitewide {
  margin-top: 1rem;
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0a0a0a;
    border-bottom: 3px solid var(--smfp-red);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.85rem;
  }

  .site-nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    border-left-color: var(--smfp-red);
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.04);
  }

  .gallery-strip {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 240px;
  }

  .event-item,
  .contact-panel,
  .page-layout,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__social {
    justify-content: flex-start;
  }

  .site-logo__text {
    display: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 3.25rem 0;
  }

  .home-hero {
    min-height: 72vh;
  }

  .home-hero__content {
    padding-top: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-hero__slides img {
    animation: none;
    opacity: 0;
  }

  .home-hero__slides img:first-child {
    opacity: 1;
  }
}
