/*
Theme Name: H Tejada
Theme URI: https://htejada.org/
Author: Asociacion Civil H. Tejada
Description: Tema institucional ligero para la Asociacion Civil H. Tejada.
Version: 1.1.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: h-tejada
*/

:root {
  --ht-blue: #008f45;
  --ht-blue-2: #0f6f3d;
  --ht-gold: #a8cf2d;
  --ht-green: #00a651;
  --ht-ink: #34383b;
  --ht-muted: #767b7f;
  --ht-logo-gray: #a6a8ab;
  --ht-bg: #f6f7f4;
  --ht-line: #e0e2df;
  --ht-white: #ffffff;
  --ht-radius: 8px;
  --ht-shadow: 0 18px 55px rgba(52, 56, 59, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ht-ink);
  background: var(--ht-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--ht-blue);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e6e7e4;
  backdrop-filter: blur(12px);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ht-ink);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand img {
  max-height: 54px;
  width: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 10px 12px;
  color: #303437;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
  color: var(--ht-blue);
  background: #eef3ed;
}

.hero {
  background:
    linear-gradient(120deg, rgba(0, 106, 55, 0.98), rgba(0, 166, 81, 0.9)),
    radial-gradient(circle at 88% 14%, rgba(168, 207, 45, 0.34), transparent 32%),
    linear-gradient(90deg, rgba(52, 56, 59, 0.16), transparent 42%);
  color: var(--ht-white);
  padding: 58px 0;
}

.hero .wrap {
  max-width: 1120px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 42px;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__media {
  position: relative;
}

.hero__media::before {
  position: absolute;
  inset: -14px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
}

.site-image {
  display: block;
  width: 100%;
}

.hero__image,
.image-frame {
  width: 100%;
  object-fit: cover;
  border-radius: var(--ht-radius);
  box-shadow: 0 20px 60px rgba(24, 31, 27, 0.22);
}

.hero__image {
  aspect-ratio: 16 / 10;
  min-height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.image-frame {
  aspect-ratio: 4 / 3;
  border: 1px solid #dfe3dc;
}

.eyebrow {
  margin: 0 0 14px;
  color: #dff28a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: #2f3437;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  color: var(--ht-white);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

.hero__brand-title {
  max-width: 680px !important;
  margin-bottom: 14px;
  font-size: clamp(34px, 4.2vw, 52px) !important;
  line-height: 1.06;
}

.hero p {
  max-width: 760px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.hero__tagline {
  color: #dff28a !important;
  font-size: 24px !important;
  font-weight: 800;
}

.section {
  padding: 72px 0;
}

.section--white {
  background: var(--ht-white);
}

.section--blue {
  color: var(--ht-white);
  background:
    linear-gradient(120deg, rgba(0, 106, 55, 0.96), rgba(0, 166, 81, 0.84)),
    radial-gradient(circle at 84% 12%, rgba(168, 207, 45, 0.24), transparent 32%);
}

.section--blue h2,
.section--blue h3 {
  color: var(--ht-white);
}

.section--blue p {
  color: rgba(255, 255, 255, 0.9);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 31, 27, 0.06);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #2f3437;
  font-weight: 800;
}

.faq-list details[open] summary {
  color: #006a37;
}

.faq-list details p {
  padding: 0 20px 20px;
  margin: 0;
}

.president-letter {
  max-width: 820px;
  margin: 0 auto;
}

.president-letter p {
  font-size: 19px;
  line-height: 1.78;
}

.president-signature {
  display: grid;
  gap: 2px;
  margin-top: 34px;
  color: #34383b;
}

.president-signature__image {
  display: block;
  width: min(360px, 100%);
  height: auto;
  margin: 0 0 8px -8px;
  box-shadow: none;
}

.entry-content p,
.section p,
.card p,
.president-letter p,
.faq-list p {
  text-align: justify;
  text-justify: inter-word;
}

.hero p,
.page-hero p,
.ht-form p,
.ht-alert p {
  text-align: left;
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header p,
.lead {
  color: var(--ht-muted);
  font-size: 19px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-media,
.feature-grid {
  display: grid;
  align-items: center;
  gap: 34px;
}

.split-media {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
}

.feature-grid {
  grid-template-columns: minmax(320px, 0.9fr) repeat(2, minmax(0, 1fr));
}

.split-media__content {
  max-width: 560px;
}

.split-media__image,
.feature-grid__media {
  min-width: 0;
}

.card {
  padding: 28px;
  background: var(--ht-white);
  border: 1px solid #e4e5e2;
  border-radius: var(--ht-radius);
  box-shadow: var(--ht-shadow);
}

.card h3 {
  margin-bottom: 12px;
  font-size: 23px;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  color: var(--ht-white);
  background: var(--ht-blue-2);
  border: 1px solid var(--ht-blue-2);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #07562d;
}

.button--gold {
  color: #23300b;
  background: #c8e75f;
  border-color: #c8e75f;
}

.button--light {
  color: #0f6f3d;
  background: var(--ht-white);
  border-color: var(--ht-white);
}

.content-page {
  padding: 46px 0 72px;
}

.page-hero {
  padding: 38px 0;
  color: var(--ht-white);
  background:
    linear-gradient(120deg, rgba(0, 106, 55, 0.96), rgba(0, 166, 81, 0.82)),
    radial-gradient(circle at 86% 14%, rgba(168, 207, 45, 0.3), transparent 34%),
    linear-gradient(90deg, rgba(52, 56, 59, 0.12), transparent 42%),
    var(--page-hero-image, none) center / cover no-repeat;
}

.page-hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 0.64fr);
  align-items: center;
  gap: 28px;
}

.page-hero h1 {
  color: var(--ht-white);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
}

.page-hero__image {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--ht-radius);
  box-shadow: 0 20px 60px rgba(24, 31, 27, 0.2);
}

.page-hero__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.content-page .entry-content > * {
  width: min(920px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.entry-content h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.entry-content h2 {
  margin-top: 48px;
  font-size: clamp(28px, 4vw, 40px);
}

.entry-content h3 {
  margin-top: 32px;
  font-size: 24px;
}

.entry-content ul {
  padding-left: 24px;
}

.ht-form {
  display: grid;
  gap: 18px;
  max-width: 880px;
  padding: 28px;
  margin: 32px auto;
  background: var(--ht-white);
  border: 1px solid var(--ht-line);
  border-radius: var(--ht-radius);
  box-shadow: var(--ht-shadow);
}

.ht-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ht-form label {
  display: block;
  color: var(--ht-ink);
  font-weight: 750;
}

.ht-form fieldset {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
}

.ht-form legend {
  margin-bottom: 4px;
  color: var(--ht-ink);
  font-weight: 750;
}

.ht-form small {
  color: var(--ht-muted);
  font-weight: 500;
}

.ht-form input,
.ht-form select,
.ht-form textarea {
  width: 100%;
  display: block;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--ht-ink);
  background: #fbfcfa;
  border: 1px solid #d6d8d4;
  border-radius: 7px;
  font: inherit;
}

.ht-form textarea {
  min-height: 130px;
  resize: vertical;
}

.ht-form__full {
  grid-column: 1 / -1;
}

.ht-form__note {
  margin: 0;
  color: var(--ht-muted);
  font-size: 15px;
}

.ht-hidden-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.required {
  color: #0f6f3d;
  font-weight: 900;
}

.ht-form__check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
}

.ht-form__check input {
  width: auto;
  margin-top: 7px;
}

.ht-alert {
  width: min(920px, calc(100% - 32px));
  padding: 20px 22px;
  margin: 28px auto;
  border-radius: var(--ht-radius);
  border: 1px solid var(--ht-line);
  background: var(--ht-white);
}

.ht-alert--success {
  border-color: #8ecfa9;
  background: #edf9f2;
}

.ht-alert--warning {
  border-color: #e1c88c;
  background: #fff7df;
}

.ht-alert--error {
  border-color: #d89a9a;
  background: #fff0f0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: #34383b;
  padding: 42px 0;
}

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

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 820px) {
  .site-header__inner,
  .site-footer__inner {
    align-items: center;
    flex-direction: column;
  }

  .site-header__inner {
    width: calc(100% - 20px);
    min-height: 0;
    padding: 10px 0 12px;
    gap: 10px;
  }

  .brand img {
    max-height: 46px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .main-nav ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: max-content;
    padding-bottom: 2px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero {
    padding: 38px 0;
  }

  .hero__grid,
  .page-hero .wrap,
  .split-media,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__brand-title {
    font-size: clamp(31px, 10vw, 42px) !important;
  }

  .hero__tagline {
    font-size: 20px !important;
  }

  .hero__image {
    min-height: 260px;
  }

  .page-hero {
    padding: 28px 0;
  }

  .page-hero .wrap {
    width: calc(100% - 24px);
    gap: 20px;
  }

  .page-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .page-hero__image img {
    aspect-ratio: 16 / 9;
  }

  .grid,
  .grid--2,
  .ht-form__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 520px) {
  .wrap,
  .site-footer__inner {
    width: calc(100% - 24px);
  }

  .hero p,
  .page-hero p {
    font-size: 17px;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button,
  input[type="submit"] {
    width: 100%;
    text-align: center;
  }

  .page-hero__image {
    box-shadow: 0 14px 35px rgba(24, 31, 27, 0.16);
  }
}
