/*
 Theme Name:   Wedū One Page Child
 Theme URI:    https://wedumedia.com
 Description:  Wedū Media child theme for Hello Elementor — One Page Service Business Template
 Author:       Wedū Media
 Author URI:   https://wedumedia.com
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  wedu-child
*/

/* =====================================================================
   SELF-HOSTED URBANIST FONT
   Download WOFF2 files from: https://fonts.google.com/specimen/Urbanist
   Place them in /assets/fonts/ inside this child theme folder
   ===================================================================== */

@font-face {
  font-family: 'Urbanist';
  src: url('assets/fonts/Urbanist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('assets/fonts/Urbanist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('assets/fonts/Urbanist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('assets/fonts/Urbanist-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* =====================================================================
   !! CHANGE COLORS HERE — Only edit these 2 lines for full site recolor
   ===================================================================== */

:root {
  --color-primary:  #1B2A3B;   /* ← CHANGE THIS: Main brand color (nav, buttons, headings) */
  --color-accent:   #F97316;   /* ← CHANGE THIS: Accent color (hover, icons, highlights)   */

  /* --- Neutrals — usually leave these as is --- */
  --color-text:     #1a1a1a;   /* Body text — dark grey, not pure black                     */
  --color-bg:       #ffffff;   /* Page background                                           */
  --color-surface:  #f5f5f5;   /* Cards, alternate section backgrounds                      */
  --color-border:   #e2e2e2;   /* Borders, dividers                                         */
  --color-white:    #ffffff;
  --color-primary-dark: #111d28; /* Darker shade of primary for hover states               */

  /* --- Typography Scale (rem = relative to root 16px) --- */
  --font-base:      'Urbanist', 'Segoe UI', Roboto, Arial, sans-serif;
  --text-xs:        0.75rem;    /* 12px */
  --text-sm:        0.875rem;   /* 14px */
  --text-base:      1rem;       /* 16px */
  --text-md:        1.125rem;   /* 18px */
  --text-lg:        1.25rem;    /* 20px */
  --text-xl:        1.5rem;     /* 24px */
  --text-2xl:       1.75rem;    /* 28px */
  --text-3xl:       2rem;       /* 32px */
  --text-h2:        2.25rem;    /* 36px  — section headings */
  --text-h1:        3rem;       /* 48px  — hero heading     */

  /* --- Spacing --- */
  --space-xs:       0.5rem;
  --space-sm:       1rem;
  --space-md:       1.5rem;
  --space-lg:       2rem;
  --space-xl:       3rem;
  --space-2xl:      5rem;

  /* --- Section padding --- */
  --section-py:     5rem;

  /* --- Border radius --- */
  --radius-sm:      0.25rem;
  --radius-md:      0.5rem;
  --radius-lg:      1rem;

  /* --- Transitions --- */
  --transition:     all 0.25s ease;

  /* --- Shadow --- */
  --shadow-card:    0 0.25rem 1.5rem rgba(0, 0, 0, 0.08);
  --shadow-hover:   0 0.5rem 2rem rgba(0, 0, 0, 0.14);

  /* --- Header height (used for scroll offset) --- */
  --header-h:       5rem;
}

/* =====================================================================
   GLOBAL RESET & BASE
   ===================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h); /* offset for sticky header */
  font-size: 100%; /* 1rem = 16px — never change this to px */
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* =====================================================================
   TYPOGRAPHY
   ===================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-primary);
}

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

ul {
  list-style: none;
}

/* =====================================================================
   SKIP TO CONTENT LINK (Accessibility)
   ===================================================================== */

.wedu-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75em 1.5em;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: var(--text-sm);
  z-index: 9999;
  transition: top 0.2s;
}

.wedu-skip-link:focus {
  top: var(--space-sm);
}

/* =====================================================================
   STICKY HEADER
   ===================================================================== */

.wedu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background-color: var(--color-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.wedu-header.scrolled {
  background-color: var(--color-primary-dark);
  box-shadow: 0 0.125rem 1rem rgba(0,0,0,0.3);
}

.wedu-header__inner {
  width: 100%;
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.wedu-header__logo img,
.wedu-header__logo svg {
  height: 3rem; /* never use fixed px per spec */
  width: auto;
}

.wedu-header__logo a {
  display: flex;
  align-items: center;
}

/* Nav links */
.wedu-nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.wedu-nav__list a {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4em 0;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.wedu-nav__list a:hover,
.wedu-nav__list a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Header CTA phone button */
.wedu-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background-color: var(--color-accent);
  color: var(--color-white) !important;
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.6em 1.2em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.wedu-header__cta:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.wedu-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.wedu-nav__toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-white);
  margin: 5px 0;
  transition: var(--transition);
}

/* =====================================================================
   MAIN CONTENT OFFSET (for fixed header)
   ===================================================================== */


/* =====================================================================
   SECTION BASE STYLES
   ===================================================================== */

.wedu-section {
  padding: var(--section-py) var(--space-md);
}

.wedu-section--dark {
  background-color: var(--color-primary);
}

.wedu-section--dark h2,
.wedu-section--dark h3,
.wedu-section--dark p {
  color: var(--color-white);
}

.wedu-section--surface {
  background-color: var(--color-surface);
}

.wedu-container {
  max-width: 75rem; /* 1200px */
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Section heading style */
.wedu-section__label {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
}

.wedu-section__title {
  font-size: var(--text-h2);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.wedu-section__desc {
  font-size: var(--text-md);
  color: #555;
  max-width: 40rem;
  line-height: 1.7;
}

/* =====================================================================
   BUTTONS
   ===================================================================== */

.wedu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.85em 2em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.wedu-btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.wedu-btn--primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}

.wedu-btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.wedu-btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

/* =====================================================================
   CARDS
   ===================================================================== */

.wedu-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: var(--transition);
}

.wedu-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-0.25rem);
}

/* =====================================================================
   FOOTER
   ===================================================================== */

.wedu-footer {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.wedu-footer a {
  color: rgba(255,255,255,0.75);
  transition: var(--transition);
}

.wedu-footer a:hover {
  color: var(--color-accent);
}

.wedu-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* =====================================================================
   ACCESSIBILITY
   ===================================================================== */

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Never remove focus outline without replacement */
:focus:not(:focus-visible) {
  outline: none;
}

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* Tablet — 48em = 768px */
@media (max-width: 48em) {
  :root {
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --section-py: 3rem;
  }

  .wedu-nav__list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background-color: var(--color-primary-dark);
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .wedu-nav__list.is-open {
    display: flex;
  }

  .wedu-nav__toggle {
    display: block;
  }

  .wedu-header__cta {
    display: none;
  }
}

/* Mobile — 30em = 480px */
@media (max-width: 30em) {
  :root {
    --text-h1: 2rem;
    --text-h2: 1.5rem;
  }
}
