/*
Theme Name: Crownhill International College
Theme URI: https://cicbrazil.com
Author: Crownhill International College
Author URI: https://cicbrazil.com
Description: Official custom theme for Crownhill International College — Technology, Languages & Professional Education
Version: 1.0.2
Requires at least: 4.7
Requires PHP: 7.0
Tested up to: 6.9
License: Private
Text Domain: cictheme
*/

/* ================================================
   DESIGN SYSTEM — CSS VARIABLES
   ================================================ */
:root {
    --teal:           #0B4D4A;
    --teal-dark:      #083835;
    --teal-mid:       #0D5C58;
    --teal-light:     #E8F5F4;
    --gold:           #D4A820;
    --gold-dark:      #B8900F;
    --gold-light:     #FDF3D0;
    --white:          #FFFFFF;
    --off-white:      #F9FAFB;
    --gray-50:        #F9FAFB;
    --gray-100:       #F3F4F6;
    --gray-200:       #E5E7EB;
    --gray-300:       #D1D5DB;
    --gray-400:       #9CA3AF;
    --gray-500:       #6B7280;
    --gray-600:       #4B5563;
    --gray-700:       #374151;
    --gray-800:       #1F2937;
    --gray-900:       #111827;
    --black:          #0D0D0D;
    --success:        #059669;
    --success-light:  #D1FAE5;
    --error:          #DC2626;
    --error-light:    #FEE2E2;
    --warning:        #D97706;
    --warning-light:  #FEF3C7;
    --info:           #2563EB;
    --info-light:     #DBEAFE;

    --font-heading:   'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:      'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono:      'DM Mono', 'Courier New', monospace;

    --shadow-xs:      0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm:      0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg:      0 10px 15px rgba(0,0,0,0.08), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl:      0 20px 25px rgba(0,0,0,0.10), 0 10px 10px rgba(0,0,0,0.04);
    --shadow-2xl:     0 25px 50px rgba(0,0,0,0.15);
    --shadow-teal:    0 8px 24px rgba(11,77,74,0.25);
    --shadow-gold:    0 8px 24px rgba(212,168,32,0.30);

    --radius-xs:      2px;
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --radius-2xl:     24px;
    --radius-full:    9999px;

    --transition:      all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    --container:     1200px;
    --container-sm:  860px;
    --container-xs:  640px;
    --nav-height:    72px;
    --topbar-height: 40px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 1.0125rem;
    line-height: 1.65;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
    text-rendering: optimizeLegibility;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--teal); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
input, textarea, select { font-family: var(--font-body); font-size: 1rem; }

/* ================================================
   TYPOGRAPHY
   ================================================ */
h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem,   5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem,3vw, 1.875rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.15rem; line-height: 1.75; color: var(--gray-500); }
.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.text-teal   { color: var(--teal) !important; }
.text-gold   { color: var(--gold) !important; }
.text-white  { color: var(--white) !important; }
.text-gray   { color: var(--gray-500) !important; }
.text-center { text-align: center; }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-lg     { font-size: 1.125rem; }
.text-bold   { font-weight: 700; }
.text-upper  { text-transform: uppercase; }

/* ================================================
   LAYOUT
   ================================================ */
.container    { max-width: var(--container);    margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: var(--container-xs); margin: 0 auto; padding: 0 24px; }

.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-lg { padding: 120px 0; }
.section-xl { padding: 160px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }

.flex           { display: flex; }
.flex-col       { display: flex; flex-direction: column; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.gap-xs { gap: 8px; }
.gap-sm { gap: 16px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 32px; }
.gap-xl { gap: 48px; }

/* ================================================
   SECTION HEADERS
   ================================================ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2    { margin-bottom: 16px; }
.section-header .lead { max-width: 560px; margin: 0 auto; }
.section-header-left  { text-align: left; margin-bottom: 48px; }

/* ================================================
   BUTTONS
   ================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
    text-decoration: none;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-teal); }
.btn-gold { background: var(--gold); color: var(--teal); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: var(--white); color: var(--teal); border-color: var(--white); }
.btn-ghost { background: transparent; color: var(--teal); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--gold-dark); gap: 12px; }
.btn-sm   { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg   { padding: 18px 36px; font-size: 1.05rem; }
.btn-xl   { padding: 20px 44px; font-size: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ================================================
   CARDS
   ================================================ */
.card { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); border-color: transparent; }
.card-body   { padding: 28px; }
.card-header { padding: 20px 28px; border-bottom: 1px solid var(--gray-100); }
.card-footer { padding: 20px 28px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }

/* ================================================
   BADGES
   ================================================ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.badge-teal    { background: var(--teal-light);    color: var(--teal); }
.badge-gold    { background: var(--gold-light);    color: var(--gold-dark); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-error   { background: var(--error-light);   color: var(--error); }
.badge-white   { background: rgba(255,255,255,0.15); color: var(--white); }

/* ================================================
   FORMS BASE
   ================================================ */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 6px; }
input[type="text"],input[type="email"],input[type="tel"],input[type="number"],
input[type="password"],input[type="date"],select,textarea {
    width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
    border-radius: var(--radius-md); font-family: var(--font-body); font-size: 0.95rem;
    color: var(--gray-900); background: var(--white); transition: var(--transition-fast);
    outline: none; appearance: none;
}
input:focus,select:focus,textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,77,74,0.10); }
.field-error { color: var(--error); font-size: 0.8rem; margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ================================================
   BACKGROUNDS
   ================================================ */
.bg-teal       { background: var(--teal);       color: var(--white); }
.bg-teal-dark  { background: var(--teal-dark);  color: var(--white); }
.bg-teal-light { background: var(--teal-light); }
.bg-gold       { background: var(--gold); }
.bg-gold-light { background: var(--gold-light); }
.bg-gray       { background: var(--gray-100); }
.bg-white      { background: var(--white); }
.bg-dark       { background: var(--gray-900); color: var(--white); }
.bg-off-white  { background: var(--off-white); }
.bg-teal h1,.bg-teal h2,.bg-teal h3,.bg-teal h4,.bg-teal h5,.bg-teal h6 { color: var(--white); }
.bg-dark  h1,.bg-dark  h2,.bg-dark  h3,.bg-dark  h4,.bg-dark  h5,.bg-dark  h6 { color: var(--white); }

/* ================================================
   DIVIDERS
   ================================================ */
.divider      { height: 1px; background: var(--gray-200); }
.divider-gold { height: 3px; width: 60px; background: var(--gold); border-radius: 2px; }

/* ================================================
   WHATSAPP FLOAT BUTTON
   ================================================ */
.whatsapp-float {
    position: fixed; bottom: 28px; right: 28px;
    width: 58px; height: 58px; background: #25D366; color: var(--white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45); z-index: 9999;
    transition: var(--transition); animation: waPulse 2.5s ease-in-out infinite; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); color: var(--white); box-shadow: 0 6px 28px rgba(37,211,102,0.60); }
@keyframes waPulse {
    0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
    50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ================================================
   SCROLL ANIMATIONS
   ================================================ */
.animate-on-scroll { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.animate-on-scroll.animated { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

/* ================================================
   WORDPRESS ADMIN BAR FIX
   ================================================ */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: calc(var(--nav-height) + var(--topbar-height) + 32px); }
@media screen and (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
    .admin-bar .mobile-menu { top: calc(var(--nav-height) + 46px); }
}

/* ================================================
   UTILITIES
   ================================================ */
.w-full { width: 100%; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.mt-1{margin-top:8px}   .mb-1{margin-bottom:8px}
.mt-2{margin-top:16px}  .mb-2{margin-bottom:16px}
.mt-3{margin-top:24px}  .mb-3{margin-bottom:24px}
.mt-4{margin-top:32px}  .mb-4{margin-bottom:32px}
.mt-6{margin-top:48px}  .mb-6{margin-bottom:48px}
.mt-8{margin-top:64px}  .mb-8{margin-bottom:64px}
.pt-2{padding-top:16px} .pb-2{padding-bottom:16px}
.pt-4{padding-top:32px} .pb-4{padding-bottom:32px}
.pt-6{padding-top:48px} .pb-6{padding-bottom:48px}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-5 { grid-template-columns: repeat(3,1fr); }
    .section    { padding: 72px 0; }
    .section-lg { padding: 96px 0; }
}
@media (max-width: 768px) {
    .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
    .grid-5     { grid-template-columns: repeat(2,1fr); }
    .section    { padding: 56px 0; }
    .section-lg { padding: 72px 0; }
    .container  { padding: 0 16px; }
    .section-header { margin-bottom: 40px; }
    .hide-mobile { display: none !important; }
}
@media (max-width: 480px) {
    .grid-5 { grid-template-columns: 1fr; }
    .btn-lg { padding: 16px 28px; }
    .container { padding: 0 14px; }
}
