/*
 * Theme Name: CCO Landing
 * Description: Landing page theme for the CCO SYSTEM orthodontic brand.
 * Version: 1.0.0
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cco-navy:       #000000;
  --cco-teal:       #2e7ead;
  --cco-sky:        #4aa8d8;
  --cco-white:      #ffffff;
  --cco-off-white:  #f5f7f9;
  --cco-beige:      #f0ebe2;
  --cco-mid-grey:   #6b7c93;
  --cco-dark:       #000000;

  --font-display:   'AvenirRoman', Georgia, serif;
  --font-body:      'AvenirRoman', system-ui, sans-serif;

  --text-xs:   1rem;
  --text-sm:   1.2rem;
  --text-base: 1.5rem;
  --text-lg:   1.5rem;
  --text-xl:   2rem;
  --text-2xl:  2.75rem;
  --text-3xl:  3rem;
  --text-4xl:  3rem;
  --text-5xl:  4rem;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.75rem;
  --space-lg:  3rem;
  --space-xl:  5rem;

  --radius:    30px;
  --max-width: 1200px;
  --transition: 200ms ease;
}

/* ============================================================
   FONTS
   ============================================================ */
@font-face {
  font-family: 'AvenirRoman';
  src: url('../../treatment/fonts/avenir_roman_12.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--cco-dark);
  background: var(--cco-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ol, ul { list-style: none; }

/* remove header and footer */
.elementor-location-header {
  display:none;
}
.elementor-location-footer {
  display:none;
}

/* ============================================================
   UTILITY
   ============================================================ */
.cco-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.cco-section-title {
  font-size: var(--text-3xl);
  color: var(--cco-teal);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 400;
  font-style: italic;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.cco-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  border: 2px solid transparent;
}

.cco-btn--outline {
  border-color: var(--cco-teal);
  color: var(--cco-teal);
  background: transparent;
}
.cco-btn--outline:hover,
.cco-btn--outline:focus-visible {
  background: var(--cco-teal);
  color: var(--cco-white);
}

.cco-btn--ghost {
  border-color: var(--cco-white);
  color: var(--cco-white);
  background: transparent;
}
.cco-btn--ghost:hover,
.cco-btn--ghost:focus-visible {
  background: var(--cco-white);
  color: var(--cco-teal);
}

.cco-btn--primary {
  background: var(--cco-white);
  color: var(--cco-navy);
  border-color: var(--cco-white);
}
.cco-btn--primary:hover,
.cco-btn--primary:focus-visible {
  background: var(--cco-sky);
  border-color: var(--cco-sky);
  color: var(--cco-white);
}

/* ============================================================
   HEADER
   ============================================================ */
.cco-header {
  background: var(--cco-white);
  border-bottom: none;
  padding-block: 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cco-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cco-header__logos {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cco-header__logo-cco {
  height: 120px;
  width: auto;
}

.cco-header__logo-gc {
  height: 50px;
  width: auto;
}

.cco-header__cta img {
  height: 60px;
  width: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.cco-hero {
  background: var(--cco-beige);
  padding-block: 0;
  overflow: hidden;
  background-image: url('../../treatment/images/hero-back.jpg');
  background-repeat: repeat-x;
  background-position: center -50px;
}

.cco-hero__inner {
  background: none;
  display: flex;
  gap: 0;
}

.cco-hero__copy {
  padding-top: 30px;
  padding-left: 30px;
  flex: 1 1 50%;
  padding-bottom: var(--space-xl);
}

.cco-hero__headline {
  padding-top: 100px;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--cco-teal);
  margin-bottom: var(--space-md);
}

.cco-hero__sub {
  font-size: var(--text-base);
  color: var(--cco-dark);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.cco-hero__cta {
  display: inline-block;
  margin-top: var(--space-md);
}

.cco-hero__cta img {
  height: 75px;
  width: auto;
}

.cco-hero__portrait {
  flex: 0 0 50%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cco-hero__caption {
  position: absolute;
  top: 110px;
  right: -20px;
  font-size: 14px;
  font-style: italic;
  color: var(--cco-teal);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
  align-self: flex-end;
  text-align: left;
  padding-right: var(--space-sm);
}

.cco-hero__portrait img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  object-position: bottom;
  display: block;
}

/* ============================================================
   STAT BAR
   ============================================================ */
.cco-stat {
  background: none;
  padding-block: var(--space-xl);
}

.cco-stat__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cco-stat__number {
  flex: 0 0 auto;
}

.cco-stat__img {
  height: 160px;
  width: auto;
}

.cco-stat__copy {
  flex: 1 1 auto;
  padding-left: var(--space-md);
}

.cco-stat__copy p {
  font-size: var(--text-lg);
  color: var(--cco-dark);
  line-height: 1.6;
}

.cco-stat__copy p + p {
  margin-top: var(--space-sm);
}

.cco-stat__philosophy {
  font-weight: 600;
  color: var(--cco-navy);
}

/* ============================================================
   3-WIRE SEQUENCE
   ============================================================ */
.cco-wire {
  background: var(--cco-beige);
  padding-block: 0;
}

.cco-wire__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cco-wire__media {
  flex: 0 0 50%;
}

.cco-wire__media img {
  border-radius: 0;
  width: 100%;
}

.cco-wire__content {
  flex: 1 1 auto;
}

.cco-wire__title {
  font-size: var(--text-3xl);
  font-weight: 400;
  font-style: italic;
  color: var(--cco-teal);
  margin-bottom: var(--space-xs);
  text-align: center;
}

.cco-wire__subtitle {
  font-size: var(--text-base);
  color: var(--cco-mid-grey);
  margin-bottom: var(--space-md);
  text-align: center;
}

.cco-stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.cco-stages__item {
  background: var(--cco-teal);
  color: var(--cco-white);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cco-stages__item--1,
.cco-stages__item--2,
.cco-stages__item--3 { background: var(--cco-teal); }

.cco-stages__name {
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-style: italic;
  text-align: center;
}

.cco-stages__role {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.85;
  text-align: center;
}

.cco-stages__detail {
  font-size: var(--text-sm);
  opacity: 0.75;
  text-align: center;
}

/* ============================================================
   HOW IT WORKS TOGETHER
   ============================================================ */
.cco-how {
  background: var(--cco-off-white);
  padding-block: var(--space-xl);
}

.cco-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.cco-pillar {
  background: var(--cco-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding-bottom: var(--space-md);
}

/* Inline looping gifs — all same height, black bg fills any letterbox */
.cco-pillar > img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #000;
}

/* Archwires gif has a white background */
.cco-pillar:first-child > img {
  background: #fff;
}

.cco-pillar h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: #000000;
  padding: var(--space-sm) var(--space-sm) var(--space-xs);
}

.cco-pillar p {
  font-size: var(--text-sm);
  color: var(--cco-mid-grey);
  padding-inline: var(--space-sm);
  line-height: 1.6;
}

/* ============================================================
   PULL QUOTE
   ============================================================ */
.cco-quote {
  background: var(--cco-beige);
  padding-block: var(--space-xl);
  padding-bottom: 120px;
}

.cco-quote__block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  border-left: none;
  padding: 0;
}

.cco-quote__block p {
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--cco-teal);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.cco-quote__block cite {
  font-size: var(--text-sm);
  color: var(--cco-teal);
  font-style: normal;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.cco-form-section {
  background: var(--cco-teal);
  padding-block: var(--space-xl);
  text-align: center;
}

.cco-form-section .cco-container {
  max-width: 780px;
}

.cco-form-section__teeth img {
  max-height: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-md);
  margin-top: -180px;
}

.cco-form-section__title {
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  color: var(--cco-white);
  margin-bottom: var(--space-sm);
}

.cco-form-section__intro {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.cco-form {
  text-align: left;
}

.cco-form__row {
  margin-bottom: var(--space-sm);
}

.cco-form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.cco-form__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.cco-form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: var(--radius) !important;
  color: var(--cco-white) !important;
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: 0.65rem 0.875rem;
  transition: border-color var(--transition), background var(--transition) !important;
  appearance: none !important;
}

.cco-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cco-form__input:focus {
  outline: none;
  border-color: var(--cco-sky);
  background: rgba(255, 255, 255, 0.18);
}

.cco-form__submit {
  text-align: center;
  margin-top: var(--space-md);
}

.cco-form__submit .cco-btn,
.cco-form__submit .cco-btn:hover {
  border: none;
  background: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cco-footer-section {
  text-align: center;
  height: 180px;
  background: var(--cco-beige);
}

.cco-footer-section .cco-container {
  padding: 30px;
}

.cco-footer-section img {
  width: 120px;
  height: auto;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cco-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    gap: 2rem;
  }

  .cco-hero__inner {
    flex-direction: column-reverse;
  }

  .cco-wire__inner {
    flex-direction: column;
    padding: 0;
  }

  .cco-wire__content {
    flex: 1 1 auto;
    padding: 20px;
  }

  .cco-stat__inner {
    flex-direction: column;
  }

  .cco-hero__portrait img {
    max-height: 340px;
    margin-inline: auto;
  }

  .cco-hero__portrait {
    flex-direction: column-reverse;
  }

  .cco-hero__caption {
    position: unset;
    align-self: center;
    text-align: center;
    padding-top: 15px;
  }

  .cco-hero__headline {
    padding-top: 0px;
  }

  .cco-hero__copy {
    padding-top: 0px;
    padding-left: 0px;
  }

  .cco-hero__sub {
    font-size: var(--text-sm);
  }

  .cco-stat__copy {
    border-top: none;
    padding-left: 0;
    padding-top: 0;
  }

  .cco-pillars {
    grid-template-columns: 1fr;
  }

  .cco-pillar > img {
    height: 220px;
  }

  .cco-stat__img {
    height: 100px;
  }
}

@media (max-width: 560px) {
  :root {
    --text-3xl: 2rem;
    --text-5xl: 3rem;
  }

  .cco-form__row--half {
    grid-template-columns: 1fr;
  }

  .cco-pillars {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

