/* ===== ALIP France theme =====
   Loaded after site.css when Site:Theme=alipfrance (see Models/SiteTheme.cs). site.css keeps the
   layout; this file restyles it, mostly by overriding the :root variables. The variable *names* are
   LinguaViva's (verde, amarelo...) - they are the roles site.css uses: verde = primary, amarelo =
   accent, azul = secondary (CTA buttons), coral = highlight, cream = page background.

   Palette and look taken from ALIP's own material (logo, flyers, event banner): royal blue -> navy
   as the main colour, the Brazilian flag's green and gold as accents, bold geometric headings, a
   brush-script accent and a green/gold/blue "flag ribbon". When changing fonts, update FontsHref in
   Models/SiteTheme.cs to load the same families. */

:root {
  /* Roles, as site.css uses them. */
  --color-verde: #1747a6;        /* primary: ALIP royal blue (the "LIP" of the logo) */
  --color-verde-dark: #0b2a6b;   /* deep navy: headings, footer, CTA band */
  --color-amarelo: #ffc72c;      /* accent: Brazil gold */
  --color-azul: #15803d;         /* secondary / CTA buttons: Brazil green (white text passes AA) */
  --color-coral: #15803d;        /* highlight: active nav link, badges */
  --color-cream: #f4f7fc;        /* page background: white with a hint of blue */
  --color-cream-tint: #e6eefa;   /* tinted sections */
  --color-charcoal: #1c2433;
  --color-white: #ffffff;

  /* ALIP-only extras. */
  --alip-green-bright: #1fa64a;
  --alip-blue-bright: #2463d6;
  --alip-ribbon: linear-gradient(90deg,
      var(--alip-green-bright) 0 33.3%,
      var(--color-amarelo) 33.3% 66.6%,
      var(--color-verde) 66.6% 100%);

  --font-heading: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, sans-serif;
  --font-script: "Kaushan Script", "Brush Script MT", cursive;

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 14px 30px -16px rgba(11, 42, 107, 0.35);

  /* No LinguaViva flower/flag in the empty image placeholders. */
  --placeholder-hero-mark: "";
  --placeholder-portrait-mark: "";
}

/* ===== Type ===== */

h1, h2, h3, h4 {
  color: var(--color-verde-dark);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 700;
}

a {
  color: var(--color-verde);
}

/* Section titles get the gold/green brush stroke that underlines headings on ALIP's flyers. */
.section__title::after,
.section:not(.section--cta-band) .container--narrow > h2:first-child::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 0.4rem;
  margin: 0.55rem auto 0;
  border-radius: 999px 40% 999px 30%;
  background: linear-gradient(90deg, var(--alip-green-bright), var(--color-amarelo));
  transform: skewX(-18deg);
}

.section:not(.section--cta-band) .container--narrow > h2:first-child::after {
  margin-left: 0;
}

/* ===== Buttons ===== */

.btn {
  border-radius: var(--radius-sm);
  border-color: var(--color-verde);
  color: var(--color-verde);
  font-family: var(--font-heading);
  letter-spacing: 0.01em;
}

.btn--cta {
  background: var(--color-azul);
  border-color: var(--color-azul);
  color: var(--color-white);
}

.btn--cta:hover {
  background: #116b33;
  border-color: #116b33;
}

/* ===== Header ===== */

.site-header {
  box-shadow: 0 6px 18px -12px rgba(11, 42, 107, 0.45);
}

/* Flag ribbon under the header. */
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: var(--alip-ribbon);
}

.site-logo {
  color: var(--color-verde);
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ALIP's logo is a wide wordmark: give it more height than LinguaViva's square mark. */
.site-logo__image {
  height: 2.9rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a.is-active {
  box-shadow: inset 0 -3px 0 var(--color-amarelo);
}

/* `.site-nav a` is more specific than `.btn--cta` and would turn the button's label charcoal. */
.site-nav a.btn--cta,
.site-nav a.btn--cta:hover {
  color: var(--color-white);
}

.lang-switch {
  border-color: var(--color-verde);
  border-radius: var(--radius-sm);
}

/* ===== Hero ===== */

/* Full-width soft blue wash behind the (max-width) hero grid, like the flyers' light backgrounds. */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 20%, rgba(36, 99, 214, 0.14), transparent 70%),
    linear-gradient(180deg, var(--color-white), var(--color-cream));
}

.hero h1 {
  color: var(--color-verde-dark);
}

.hero__subheading {
  color: #3d4a63;
}

.hero__media img,
.hero__media-placeholder {
  box-shadow: 0 24px 40px -24px rgba(11, 42, 107, 0.55);
  border-bottom: 6px solid var(--color-amarelo);
}

.hero__media-placeholder {
  background:
    radial-gradient(70% 70% at 30% 35%, var(--alip-blue-bright), transparent 70%),
    linear-gradient(135deg, var(--color-verde-dark) 0%, var(--color-verde) 55%, var(--alip-green-bright) 100%);
}

/* ===== Sections & cards ===== */

.section--tinted {
  background: linear-gradient(180deg, var(--color-cream-tint), var(--color-cream));
}

.card,
.quote-card {
  border: 1px solid #dbe4f3;
}

.card {
  border-top: 4px solid var(--color-verde);
}

/* Alternate the top stripe through the three brand colours, as the flyers do for their sections. */
.card-grid > .card:nth-child(3n + 2) {
  border-top-color: var(--alip-green-bright);
}

.card-grid > .card:nth-child(3n + 3) {
  border-top-color: var(--color-amarelo);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--color-cream-tint);
  font-size: 1.6rem;
}

.card__tag {
  background: var(--color-cream-tint);
  color: var(--color-verde);
}

.card__price {
  color: var(--color-verde-dark);
}

.card--plan-highlighted {
  border-color: var(--color-amarelo);
}

.card__badge {
  background: var(--color-amarelo);
  color: var(--color-verde-dark);
}

.card__media-placeholder,
.gallery-item__placeholder {
  background: linear-gradient(135deg, var(--color-verde), var(--alip-green-bright));
}

.portrait__placeholder {
  background: linear-gradient(160deg, var(--color-verde-dark), var(--color-verde));
}

.feature-list li::before {
  color: var(--alip-green-bright);
}

.quote-card {
  border-left: 4px solid var(--color-amarelo);
}

.callout {
  border-left-color: var(--alip-green-bright);
}

/* ===== CTA band: navy banner with a gold call to action ===== */

.section--cta-band {
  background:
    radial-gradient(50% 120% at 100% 0%, rgba(36, 99, 214, 0.55), transparent 70%),
    linear-gradient(135deg, var(--color-verde-dark), var(--color-verde));
  position: relative;
  overflow: hidden;
}

.section--cta-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--alip-ribbon);
}

.section--cta-band h2 {
  color: var(--color-white);
}

.section--cta-band .btn--cta {
  background: var(--color-amarelo);
  border-color: var(--color-amarelo);
  color: var(--color-verde-dark);
}

.section--cta-band .btn--cta:hover {
  background: #ffd85e;
  border-color: #ffd85e;
}

/* ===== Forms ===== */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  border-color: #cfdaee;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-verde);
  box-shadow: 0 0 0 3px rgba(23, 71, 166, 0.15);
}

/* ===== Footer: navy, with the flag ribbon on top ===== */

.site-footer {
  background: var(--color-verde-dark);
  color: #d8e2f3;
  border-top: 6px solid transparent;
  border-image: var(--alip-ribbon) 1;
}

.site-footer__brand {
  color: var(--color-white);
}

/* The logo's dark lettering would vanish on navy: sit it on a white tile. */
.site-footer__brand .site-logo__image {
  height: 3.2rem;
  background: var(--color-white);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* The tagline in the flyers' brush script ("Juntos somos mais fortes !"). */
.site-footer__brand p {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--color-amarelo);
}

.site-footer a {
  color: var(--color-white);
}

.site-footer a:hover {
  color: var(--color-amarelo);
}

.site-footer__bottom {
  border-top-color: rgba(255, 255, 255, 0.12);
  color: #9fb1d6;
}
