/*
Theme Name: Corsham Tae Kwon Do Child
Description: Flatsome child theme for Corsham Tae Kwon Do.
Author: Corsham Tae Kwon Do
Template: flatsome
Version: 1.0.10
Text Domain: corsham-tae-kwon-do-child
*/

:root {
  --ctkd-red: #e30613;
  --ctkd-blue: #0057b8;
  --ctkd-navy: #071b3a;
  --ctkd-soft: #f4f7fb;
  --ctkd-light-blue: #eaf2ff;
  --ctkd-grey: #5b6472;
  --ctkd-border: rgba(7, 27, 58, .16);
  --ctkd-max: 1280px;
}

/* GLOBAL FLATSOME CLEANUP */
#top-bar,
.header-top,
.header-newsletter-item,
.header-social-icons,
.header-wrapper .social-icons,
.mobile-sidebar .social-icons,
body.page #comments,
body.page .comments-area,
body.page .comment-respond,
body.page .comments-wrapper,
#footer .footer-1,
#footer .footer-2,
#footer .absolute-footer,
.footer-widgets {
  display: none !important;
}

/* PAGE SECTIONS */
.ctkd-home-hero,
.ctkd-home-section,
.ctkd-home-dark,
.ctkd-home-light,
.ctkd-home-red {
  overflow: hidden;
}

.ctkd-home-section { background: #fff !important; }
.ctkd-home-light { background: var(--ctkd-soft) !important; }
.ctkd-home-dark { background: var(--ctkd-navy) !important; color: #fff !important; }
.ctkd-home-red { background: var(--ctkd-red) !important; color: #fff !important; }

.ctkd-home-hero > .section-content > .row,
.ctkd-home-section > .section-content > .row,
.ctkd-home-dark > .section-content > .row,
.ctkd-home-light > .section-content > .row,
.ctkd-home-red > .section-content > .row {
  width: calc(100% - 40px) !important;
  max-width: var(--ctkd-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* HERO */
.ctkd-home-hero {
  position: relative !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(227,6,19,.90), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(0,87,184,.90), transparent 35%),
    linear-gradient(135deg, var(--ctkd-navy) 0%, #020817 100%) !important;
  color: #fff !important;
}

.ctkd-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .10;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.88) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.88) 1px, transparent 1px);
  background-size: 34px 34px;
}

.ctkd-home-hero .section-content {
  position: relative !important;
  z-index: 2 !important;
}

.ctkd-eyebrow {
  margin: 0 0 12px;
  color: #fff !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.ctkd-hero-title {
  margin: 0 0 18px !important;
  color: #fff !important;
  font-size: clamp(4rem, 7.5vw, 7.2rem) !important;
  line-height: .87 !important;
  letter-spacing: -.07em !important;
  text-transform: uppercase;
}

.ctkd-hero-title span {
  color: #fff !important;
  text-shadow: 5px 5px 0 var(--ctkd-red);
}

.ctkd-hero-copy {
  max-width: 690px;
  margin-bottom: 24px;
  color: #eef4ff !important;
  font-size: 1.08rem;
  font-weight: 650;
}

.ctkd-hero-card {
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 26px;
  background: #fff;
  box-shadow: 9px 9px 0 var(--ctkd-red);
}

.ctkd-hero-card img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  object-position: center;
}

.ctkd-hero-card-content {
  padding: 20px 22px 22px;
}

.ctkd-hero-card h2 {
  margin: 0 0 8px;
  color: var(--ctkd-navy) !important;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.ctkd-hero-card p {
  margin: 0;
  color: #31405a !important;
  font-weight: 650;
}

/* HEADINGS */
.ctkd-heading-wrap { max-width: 820px; }

.ctkd-heading {
  margin: 0 0 12px !important;
  color: var(--ctkd-navy) !important;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem) !important;
  line-height: .95 !important;
  letter-spacing: -.06em !important;
  text-transform: uppercase;
}

.ctkd-heading span { color: var(--ctkd-red) !important; }

.ctkd-heading-white,
.ctkd-home-dark .ctkd-heading,
.ctkd-home-red .ctkd-heading {
  color: #fff !important;
}

.ctkd-section-copy {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 1.03rem;
}

.ctkd-home-dark .ctkd-section-copy,
.ctkd-home-red .ctkd-section-copy {
  color: #eef4ff !important;
}

/* TRUST STRIP */
.ctkd-pill-box {
  padding: 14px 20px;
  border: 1px solid var(--ctkd-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(7,27,58,.06);
}

.ctkd-pill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 18px;
  text-align: center;
}

.ctkd-pill-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ctkd-navy);
  font-size: 1.05rem;
}

.ctkd-pill-item span {
  color: #31405a;
  font-size: .95rem;
}

/* CARDS */
.ctkd-card {
  height: 100%;
  min-height: 184px;
  padding: 24px;
  border: 3px solid var(--ctkd-navy);
  border-radius: 24px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ctkd-blue);
}

.ctkd-card-red { box-shadow: 6px 6px 0 var(--ctkd-red); }
.ctkd-card-blue { background: var(--ctkd-light-blue); }

.ctkd-card h3 {
  margin: 0 0 10px;
  color: var(--ctkd-navy) !important;
  font-size: 1.42rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.ctkd-card p,
.ctkd-card li {
  color: #31405a !important;
}

/* PHOTOS */
.ctkd-photo-frame {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 3px solid #fff;
  border-radius: 24px;
  background: #fff;
  box-shadow: 7px 7px 0 var(--ctkd-red);
}

.ctkd-photo-frame.ctkd-photo-blue {
  box-shadow: 7px 7px 0 var(--ctkd-blue);
}

.ctkd-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* CLASS / INFO PANELS */
.ctkd-info-panel {
  height: 100%;
  padding: 24px;
  border: 3px solid var(--ctkd-navy);
  border-radius: 24px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ctkd-red);
}

.ctkd-info-panel.blue {
  background: var(--ctkd-light-blue);
  box-shadow: 6px 6px 0 var(--ctkd-blue);
}

.ctkd-info-panel h3 {
  margin: 0 0 10px;
  color: var(--ctkd-navy) !important;
  font-size: 1.45rem;
}

.ctkd-info-panel p,
.ctkd-info-panel li {
  color: #31405a !important;
}

/* WHY TAE KWON DO: CHILDREN / ADULTS */
.ctkd-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

.ctkd-family-grid .ctkd-info-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 28px;
}

.ctkd-family-grid .ctkd-info-panel ul {
  margin-bottom: 0;
}

.ctkd-family-grid .ctkd-actions {
  margin-top: auto;
  padding-top: 20px;
}

@media (max-width: 849px) {
  .ctkd-family-grid {
    gap: 22px;
  }
}

@media (max-width: 549px) {
  .ctkd-family-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* MAP */
.ctkd-map-frame {
  overflow: hidden;
  border: 3px solid var(--ctkd-navy);
  border-radius: 24px;
  background: #fff;
  box-shadow: 6px 6px 0 var(--ctkd-blue);
}

.ctkd-map-frame iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* BUTTONS */
.ctkd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.ctkd-actions a.button,
.ctkd-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 50px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border-radius: 12px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.ctkd-button-blue {
  background: #496b96 !important;
  border-color: #496b96 !important;
  color: #fff !important;
}

.ctkd-button-red {
  background: #c95732 !important;
  border-color: #c95732 !important;
  color: #fff !important;
}

/* FINAL CTA */
.ctkd-final-box {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.ctkd-final-box .ctkd-actions {
  justify-content: center;
}

/* RESPONSIVE */
@media (max-width: 849px) {
  .ctkd-home-hero > .section-content > .row,
  .ctkd-home-section > .section-content > .row,
  .ctkd-home-dark > .section-content > .row,
  .ctkd-home-light > .section-content > .row,
  .ctkd-home-red > .section-content > .row {
    width: calc(100% - 28px) !important;
  }

  .ctkd-hero-title {
    font-size: clamp(3rem, 13vw, 4.8rem) !important;
  }

  .ctkd-pill-box {
    border-radius: 28px;
  }

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

@media (max-width: 549px) {
  .ctkd-home-hero > .section-content > .row,
  .ctkd-home-section > .section-content > .row,
  .ctkd-home-dark > .section-content > .row,
  .ctkd-home-light > .section-content > .row,
  .ctkd-home-red > .section-content > .row {
    width: calc(100% - 20px) !important;
  }

  .ctkd-pill-grid {
    grid-template-columns: 1fr;
  }

  .ctkd-card,
  .ctkd-info-panel {
    min-height: 0;
    padding: 22px;
  }

  .ctkd-actions a.button,
  .ctkd-actions .button {
    min-height: 46px !important;
    padding: 0 18px !important;
    font-size: .92rem !important;
  }
}


/* INSTRUCTOR / CLUB CREDIBILITY */
.ctkd-instructor-section {
  position: relative !important;
  background:
    radial-gradient(circle at 100% 10%, rgba(0,87,184,.28), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(227,6,19,.20), transparent 34%),
    var(--ctkd-navy) !important;
}

.ctkd-instructor-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 26px 26px;
}

.ctkd-instructor-section .section-content {
  position: relative !important;
  z-index: 2 !important;
}

.ctkd-instructor-anchor {
  position: relative;
  top: -110px;
  height: 0;
  visibility: hidden;
}

.ctkd-instructor-lead {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 850;
  letter-spacing: .02em;
}

.ctkd-instructor-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
}

.ctkd-instructor-fact {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.20);
  border-left: 4px solid var(--ctkd-red);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.ctkd-instructor-fact.wide {
  grid-column: 1 / -1;
}

.ctkd-instructor-fact strong,
.ctkd-instructor-fact span {
  display: block;
}

.ctkd-instructor-fact strong {
  margin-bottom: 3px;
  color: #fff;
  font-size: 1.02rem;
}

.ctkd-instructor-fact span {
  color: #dce8f8;
  font-size: .93rem;
}

.ctkd-instructor-portrait {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
}

.ctkd-instructor-portrait img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 650px;
  margin: 0 auto -56px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.34));
}

.ctkd-instructor-callout {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 30px 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-left: 6px solid var(--ctkd-red);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 18px 50px rgba(0,0,0,.16);
}

.ctkd-instructor-callout .ctkd-heading {
  max-width: 900px;
}

@media (max-width: 849px) {
  .ctkd-instructor-portrait {
    min-height: 0;
    margin-top: 22px;
  }

  .ctkd-instructor-portrait img {
    max-height: 560px;
    margin-bottom: -40px;
  }
}

@media (max-width: 549px) {
  .ctkd-instructor-facts {
    grid-template-columns: 1fr;
  }

  .ctkd-instructor-fact.wide {
    grid-column: auto;
  }

  .ctkd-instructor-callout {
    padding: 24px 22px;
  }

  .ctkd-instructor-portrait img {
    max-height: 500px;
  }
}

/* CONTACT FORM */
.ctkd-contact-form {
  display: grid;
  gap: 16px;
}

.ctkd-contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ctkd-contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ctkd-navy);
  font-weight: 800;
}

.ctkd-contact-form input,
.ctkd-contact-form textarea {
  width: 100%;
  margin: 0;
  padding: 13px 14px;
  border: 2px solid rgba(7, 27, 58, .22);
  border-radius: 12px;
  background: #fff;
  color: var(--ctkd-navy);
  font: inherit;
}

.ctkd-contact-form input:focus,
.ctkd-contact-form textarea:focus {
  outline: 3px solid rgba(0, 87, 184, .16);
  border-color: var(--ctkd-blue);
}

.ctkd-contact-form textarea {
  min-height: 170px;
  resize: vertical;
}

.ctkd-contact-form .ctkd-form-full {
  grid-column: 1 / -1;
}

.ctkd-contact-form button {
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: var(--ctkd-red);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.ctkd-contact-form button:hover {
  background: #b9000d;
}

.ctkd-form-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.ctkd-form-status.success {
  background: #eaf7ee;
  color: #145c2c;
}

.ctkd-form-status.error {
  background: #fff0f0;
  color: #8f1010;
}

@media (max-width: 640px) {
  .ctkd-contact-form-grid {
    grid-template-columns: 1fr;
  }

  .ctkd-contact-form .ctkd-form-full {
    grid-column: auto;
  }
}

/* GLOBAL CORSHAM FOOTER */
.ctkd-site-footer {
  background: var(--ctkd-navy);
  color: #eef4ff;
  border-top: 5px solid var(--ctkd-red);
}

.ctkd-site-footer-inner {
  width: calc(100% - 40px);
  max-width: var(--ctkd-max);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: .92rem;
  font-weight: 700;
}

.ctkd-site-footer p {
  margin: 0;
  color: #eef4ff;
}

.ctkd-site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.ctkd-site-footer a:hover,
.ctkd-site-footer a:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ctkd-site-footer-inner {
    width: calc(100% - 28px);
    justify-content: center;
    text-align: center;
  }
}

