/* Chasing Summer Points — design tokens & base styles */

:root {
  --color-teal-deep:   #0B6B76;
  --color-teal:         #0E7C86;
  --color-teal-light:   #4FC3D9;
  --color-yellow:       #FFCE33;
  --color-yellow-deep:  #F5B700;
  --color-coral:        #FF5A4E;
  --color-coral-deep:   #E8483C;
  --color-navy:         #14304A;
  --color-sand:         #FBF6EA;
  --color-sand-deep:    #F2E9D8;
  --color-white:        #FFFFFF;

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --shadow-card: 0 4px 14px rgba(20, 48, 74, 0.10);
  --shadow-card-hover: 0 10px 24px rgba(20, 48, 74, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--color-sand) url("../img/background-texture-subtle.b436b148f4fe.png") center / cover fixed no-repeat;
  color: var(--color-navy);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5rem;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: url("../img/background-texture-diagonal.e081baeb6ec0.png") center / cover no-repeat;
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  object-fit: contain;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-yellow);
  text-shadow:
    -1px -1px 0 var(--color-navy),
     1px -1px 0 var(--color-navy),
    -1px  1px 0 var(--color-navy),
     1px  1px 0 var(--color-navy);
  letter-spacing: .3px;
  white-space: nowrap;
}

.brand-tag {
  display: none;
}

nav.main-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

nav.main-nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--color-white);
  opacity: .9;
  transition: opacity .15s, color .15s;
}

nav.main-nav a:hover {
  opacity: 1;
  color: var(--color-yellow);
}

.nav-cta {
  background: var(--color-coral);
  color: var(--color-white) !important;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  opacity: 1 !important;
}

.nav-cta:hover {
  background: var(--color-coral-deep);
}

/* ---------- Hero ---------- */

.hero {
  background:
    linear-gradient(100deg, rgba(11,49,58,.92) 0%, rgba(11,49,58,.72) 32%, rgba(11,49,58,.15) 60%, rgba(11,49,58,0) 78%),
    url("../img/hero-image-chasing-summer-points.7ea6c7357211.png") center right / cover no-repeat;
  color: var(--color-white);
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero .wrap {
  display: block;
}

.hero-copy {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.6rem;
  color: var(--color-white);
  margin-bottom: .9rem;
}

.hero h1 span {
  color: var(--color-yellow);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.88);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-size: .95rem;
}

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

.btn-primary:hover { background: var(--color-yellow-deep); }

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

/* ---------- Section headings ---------- */

.section {
  padding: 3rem 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: 1.6rem;
  color: var(--color-navy);
}

.section-head a {
  font-weight: 600;
  color: var(--color-teal-deep);
  font-size: .9rem;
}

/* ---------- Content layout (main + sidebar) ---------- */

.content-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.content-layout .article-grid {
  grid-template-columns: repeat(2, 1fr);
}

.sidebar-heading {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.category-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  padding: .5rem;
  transition: transform .15s, box-shadow .15s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.category-card-media {
  width: 52px;
  height: 52px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
}

.category-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card-body {
  min-width: 0;
}

.category-card-body h4 {
  font-family: var(--font-display);
  font-size: .88rem;
  margin: 0 0 .15rem;
  color: var(--color-navy);
}

.category-card-body p {
  font-size: .72rem;
  color: #52697A;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Article grid / cards ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.card-media {
  aspect-ratio: 16 / 10;
  background-color: var(--color-teal-light);
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media .play svg { width: 44px; height: 44px; }

.card-body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .2rem .55rem;
  border-radius: 999px;
  margin-bottom: .6rem;
}

.tag-beginners { background: #FFE8A3; color: #8A5B00; }
.tag-cards     { background: #FFD9D5; color: #B23327; }
.tag-programs  { background: #D7F0F3; color: #0B6B76; }
.tag-more-travel { background: #DCE3EA; color: #2B4356; }
.tag-none      { background: #E4E8EC; color: #3A4A57; }

.card h3 {
  font-size: 1.08rem;
  margin-bottom: .5rem;
}

.card p {
  font-size: .92rem;
  color: #52697A;
  margin: 0 0 .9rem;
  flex: 1;
}

.card-meta {
  font-size: .8rem;
  color: #8298A6;
}

/* ---------- Article detail ---------- */

.article-detail {
  max-width: 760px;
}

.article-title {
  font-size: 2.1rem;
  margin: .5rem 0 .4rem;
}

.article-meta {
  font-size: .85rem;
  color: #8298A6;
  margin-bottom: 1.5rem;
}

.article-featured-image {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.75rem;
}

.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.75rem;
}

.article-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.article-body {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.article-body p { margin: 0 0 1.1rem; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.75rem; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.article-body img { border-radius: var(--radius); margin: 1rem 0; }
.article-body a { color: var(--color-teal-deep); text-decoration: underline; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.3rem; padding: 0; }

/* ---------- Category listing ---------- */

.category-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 3rem 0;
  color: var(--color-white);
}

.category-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11,49,58,.88) 0%, rgba(11,49,58,.55) 100%);
}

.category-banner .wrap {
  position: relative;
}

.category-banner h1 {
  color: var(--color-white);
  font-size: 2rem;
}

.category-banner p {
  color: rgba(255,255,255,.88);
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--color-yellow); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: .88rem;
}

.footer-note {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-top: 1.5rem;
  text-align: center;
}

/* ---------- Contact form ---------- */

.contact-section {
  max-width: 560px;
}

.contact-intro {
  color: #52697A;
  margin-bottom: 1.5rem;
}

.contact-flash {
  background: #D7F0F3;
  color: var(--color-teal-deep);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form label {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  display: block;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .7rem .9rem;
  border: 1px solid #D7DEE3;
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-navy);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-teal-light);
  outline-offset: 1px;
}

.contact-form .errorlist {
  list-style: none;
  color: var(--color-coral-deep);
  font-size: .85rem;
  margin: -.6rem 0 0;
  padding: 0;
}

.contact-form .btn {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}

/* Honeypot — hidden from real visitors, but not via display:none/hidden
   (some bots skip those specifically). See core/forms.py. */
.contact-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(11,49,58,.55) 0%, rgba(11,49,58,.88) 70%),
      url("../img/hero-image-chasing-summer-points.7ea6c7357211.png") center 30% / cover no-repeat;
  }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .content-layout { grid-template-columns: 1fr; }
  .content-layout .article-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .content-layout .article-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 430px) {
  .site-header .wrap { gap: .6rem; padding: 0 1rem; }
  .brand-word { display: none; }
  nav.main-nav { gap: .6rem; }
  nav.main-nav a { font-size: .9rem; }
  .nav-cta { padding: .45rem .85rem; }
}
