/* ==========================================================
   AIMducate — site styles
   Colours and fonts are set once here; change them in :root.
   ========================================================== */
:root {
  --ink: #263238;          /* headings */
  --deep-teal: #126e69;    /* buttons, accents */
  --coral: #ea7658;        /* main button, eyebrow, icons */
  --paper: #fffdf9;        /* page background */
  --line: #dce5df;         /* thin borders */
  --mint: #e6f1ee;         /* About background */
  --text-soft: #586663;    /* body text on white */
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "opsz" 26; /* matches Canva's DM Sans widths */
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, address { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(234,118,88,.7); outline-offset: 3px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.serif { font-family: var(--serif); font-weight: 600; line-height: 1.21; font-variation-settings: normal; }
h1.serif { font-size: 2rem; line-height: 39px; }
h2.serif { font-size: 1.5rem; line-height: 29px; margin-top: 12px; }

.icon { display: block; flex: none; }
.icon-16 { width: 16px; height: 16px; }
.icon-20 { width: 20px; height: 20px; }
.icon-24 { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; line-height: 21px;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 8px 20px; }
.btn-large { padding: 14px 24px; }
.btn-teal { background: var(--deep-teal); color: #fff; }
.btn-teal:hover { background: #0f5d59; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-outline { color: var(--deep-teal); border: 1px solid var(--deep-teal); }
.btn-outline:hover { background: var(--mint); transform: none; }

/* ---------- Eyebrows (small capitals above headings) ---------- */
.eyebrow { font-weight: 700; font-size: 1rem; line-height: 21px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-coral { color: var(--coral); }
.eyebrow-teal { color: var(--deep-teal); }
.eyebrow-large { font-size: 1.25rem; line-height: 26px; }
.eyebrow-blush { color: #f2c5b6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,253,249,.95);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 128px; height: auto; }
.nav-links { display: none; align-items: center; gap: 28px; }
.nav-link { color: #45534f; font-size: .9rem; font-weight: 600; transition: color .2s ease; }
.nav-link:hover { color: var(--deep-teal); }
.menu-toggle { padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--deep-teal); cursor: pointer; }
.mobile-menu { max-height: 0; opacity: 0; overflow: hidden; background: var(--paper); transition: max-height .3s ease, opacity .3s ease; }
.mobile-menu.is-open { max-height: 480px; opacity: 1; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 16px; padding: 4px 24px 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.grid-texture {
  background-image:
    linear-gradient(rgba(18,110,105,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,110,105,.055) 1px, transparent 1px);
  background-size: 35px 35px;
}
.orbit { position: absolute; border: 1px solid rgba(234,118,88,.28); border-radius: 50%; pointer-events: none; }
.orbit-large { width: 608px; height: 608px; right: -192px; top: -192px; }
.orbit-small { width: 384px; height: 384px; right: -80px; top: 48px; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.hero-text { max-width: 672px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; padding: 8px 16px; border-radius: 999px;
  background: #e3f0ed; color: var(--deep-teal);
  font-weight: 700; font-size: 1rem; line-height: 21px; letter-spacing: .16em; text-transform: uppercase;
}
.hero h1 { margin-top: 24px; color: var(--ink); }
.hero-description { margin-top: 24px; max-width: 576px; font-size: 1.125rem; line-height: 24px; color: #4d5c58; }
.hero-buttons { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; }
.hero-art { position: relative; }
.coral-dot { position: absolute; left: -16px; top: 40px; width: 96px; height: 96px; border-radius: 50%; background: var(--coral); opacity: .2; }
.art-panel { position: relative; padding: 20px; border-radius: 32px; background: #e7f6f3; box-shadow: 0 20px 50px rgba(38,50,56,.14); }
.art-panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 16px; }
.art-caption { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.art-caption p { font-weight: 700; line-height: 21px; color: #53625e; }
.art-icons { display: flex; gap: 4px; color: var(--coral); }

/* ---------- Services ---------- */
.services { padding: 80px 0; background: var(--paper); }
.section-intro { max-width: 672px; }
.section-intro .eyebrow { display: inline-block; }
.intro-text { margin-top: 16px; font-size: 17px; line-height: 22px; color: var(--text-soft); }
.cards { margin-top: 44px; display: grid; gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(38,50,56,.11); }
.card-icon { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.icon-teal { background: #e3f0ed; color: var(--deep-teal); }
.icon-coral { background: #f9e4dc; color: #c75d42; }
.icon-gold { background: #f4ecd5; color: #937437; }
.card h3 { margin-top: 28px; font-size: 21px; font-weight: 700; line-height: 28px; }
.card p { margin-top: 12px; line-height: 21px; color: #596663; }
.card .card-text-with-link { line-height: 28px; }
.card-text-with-link span { line-height: 21px; }
.btn-pill-small { margin-top: 12px; padding: 8px 16px; vertical-align: top; }

/* ---------- Design Tools (nav dropdown, mobile group, Graphic design card) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.5; cursor: pointer; }
.nav-dropdown-toggle .icon { transition: transform .2s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle, .nav-dropdown:hover .nav-dropdown-toggle { color: var(--deep-teal); }
.nav-dropdown.is-open .nav-dropdown-toggle .icon, .nav-dropdown:hover .nav-dropdown-toggle .icon { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; left: 50%; top: 100%; width: 300px; padding: 8px; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 34px rgba(38,50,56,.13);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.is-open .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; transition: background-color .2s ease; }
.dropdown-item .icon { margin-top: 1px; color: var(--deep-teal); }
.dropdown-item:hover, .dropdown-item:focus-visible { background: var(--mint); }
.dropdown-title { display: block; font-weight: 700; font-size: .95rem; line-height: 21px; color: var(--ink); }
.dropdown-desc { display: block; margin-top: 2px; font-size: .85rem; line-height: 18px; color: var(--text-soft); }

.mobile-tools { display: flex; flex-direction: column; gap: 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.mobile-tools-label { font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.mobile-tool { display: flex; align-items: center; gap: 10px; }
.mobile-tool .icon { color: var(--deep-teal); }

.tools-block { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.card p.tools-label { margin-top: 0; font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--deep-teal); }
/* Free design tools: three separate buttons, same pill shape, weight and padding as the "Canva Step by Step" button */
.tools-buttons { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tool-btn { display: flex; width: 100%; gap: 10px; padding: 8px 16px; }
.tool-btn .tool-title { flex: 1; min-width: 0; }
.tool-btn-teal { background: var(--deep-teal); color: #fff; }       /* 6.1:1 */
.tool-btn-teal:hover { background: #0f5d59; }
.tool-btn-coral { background: var(--coral); color: var(--ink); }    /* 4.5:1 */
.tool-btn-coral:hover { background: #ee8a70; }
.tool-btn-ink { background: var(--ink); color: #fff; }              /* 13:1 */
.tool-btn-ink:hover { background: #34444c; }
.tool-btn:focus-visible { outline: 2px solid var(--deep-teal); outline-offset: 2px; }

/* ---------- About ---------- */
.about { padding: 80px 0; background: var(--mint); overflow-x: clip; }
.about-grid { display: grid; gap: 48px; align-items: center; }
.portrait { position: relative; width: 100%; max-width: 448px; margin: 0 auto; }
.portrait-frame { position: absolute; inset: -12px; border: 2px solid var(--coral); border-radius: 32px; transform: rotate(3deg); }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 28px; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.portrait-badge { position: absolute; z-index: 2; right: -16px; bottom: -20px; padding: 16px 20px; border-radius: 16px; background: #fff; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.badge-name { font-weight: 700; line-height: 21px; }
.badge-role { margin-top: 4px; font-weight: 700; line-height: 21px; color: var(--deep-teal); }
.about-text { padding-top: 28px; max-width: 672px; }
.about-description { margin-top: 20px; font-size: 17px; line-height: 22px; color: #40504d; }
.points { margin-top: 32px; display: grid; gap: 16px; }
.point { display: flex; gap: 12px; align-items: flex-start; }
.point .icon { margin-top: 4px; color: var(--deep-teal); }
.point p { font-weight: 700; line-height: 21px; color: #34433f; }

/* ---------- Contact ---------- */
.contact { padding: 80px 20px; background: #263238; }
.contact-panel {
  position: relative; overflow: hidden; max-width: 1152px; margin: 0 auto;
  padding: 40px 24px; border-radius: 32px;
  background: linear-gradient(135deg, #126e69, #1f4e4c);
}
.contact-ring { position: absolute; right: -48px; top: -64px; width: 256px; height: 256px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.contact-grid { position: relative; display: grid; gap: 40px; align-items: end; }
.contact h2 { color: #fff; }
.contact-description { margin-top: 20px; max-width: 576px; font-size: 17px; line-height: 22px; color: #d9efeb; }
.contact-links { font-style: normal; display: grid; gap: 12px; }
.contact-links a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: #fff; font-weight: 700; line-height: 21px; transition: background-color .2s ease; }
.contact-links a:hover { background: rgba(255,255,255,.1); }
.contact-links .icon { color: var(--coral); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0; background: #1d282b; }
.footer-row { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-brand { font-weight: 700; line-height: 21px; color: #fff; }
.footer-tagline { line-height: 21px; color: #b8ccc7; }

/* ---------- Gentle fade-up on load ---------- */
.reveal { animation: rise .7s both; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } html { scroll-behavior: auto; } }

/* Phones: smaller capitals so the labels stay on one line */
@media (max-width: 639px) {
  .eyebrow, .eyebrow-pill { font-size: 12px; line-height: 16px; }
  .eyebrow-large { font-size: 15px; line-height: 20px; }
}

/* ==========================================================
   Larger screens
   ========================================================== */
@media (min-width: 640px) {
  .container { padding-left: 32px; padding-right: 32px; }
  .brand img { width: 144px; }
  .art-panel { padding: 32px; }
  .services, .about { padding: 96px 0; }
  .points { grid-template-columns: 1fr 1fr; }
  .portrait-badge { right: -32px; }
  .contact { padding: 96px 32px; }
  .contact-panel { padding: 48px; }
  .footer-row { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; padding-top: 80px; padding-bottom: 112px; }
  .about-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .portrait { margin: 0; }
  .about-text { padding-top: 0; }
  .contact-grid { grid-template-columns: 1.2fr .8fr; }
}

.icon-mint { background: #dcf1ea; color: #126e69; }
.card p.ai-tagline { margin-top: 6px; font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 17px; color: #126e69; }

/* ---------- Working with AI card: podcast still + link to the blog page ---------- */
.btn-coral-ink { background: var(--coral); color: var(--ink); }
.btn-coral-ink:hover { background: #ee8a70; }
.card-ai .ai-photo { display: block; margin-top: 20px; border-radius: 16px; overflow: hidden; }
.card-ai .ai-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.card-ai .ai-link { margin-top: 16px; }
@media (min-width: 768px) and (max-width: 1179px) {
  .card-ai .ai-photo img { aspect-ratio: 16 / 11; object-position: 50% 30%; }
}
/* Wide screens: text on the left, the still on the right, so the card
   matches the height of the Graphic design card above it */
@media (min-width: 1180px) {
  .card-ai {
    display: grid; grid-template-columns: minmax(0, 1fr) 46%; column-gap: 24px;
    grid-template-rows: auto auto auto auto 1fr;
  }
  .card-ai > * { grid-column: 1; }
  .card-ai .ai-photo { grid-column: 2; grid-row: 1 / -1; margin-top: 0; position: relative; }
  .card-ai .ai-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 45%; }
  .card-ai .ai-link { align-self: end; justify-self: start; white-space: nowrap; }
}

/* Working with AI card: two separate buttons (AI page, podcast), stacked with a hairline gap like the tools buttons */
.card-ai .ai-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.card-ai .ai-links .btn { padding: 8px 16px; }
