/*
Theme Name: TimeFlexer
Theme URI: https://www.timeflexer.com
Author: TimeFlexer Virtual Business Solutions
Author URI: https://www.timeflexer.com
Description: Custom WordPress theme for TimeFlexer — Virtual Business Solutions. Strategic by Design. Flexed to Fit Your Business.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: timeflexer
Tags: business, custom-colors, custom-logo, full-width-template, responsive-layout
*/

/* ══════════════════════════════════════════
   TIMEFLEXER BRAND DESIGN SYSTEM
   Fonts: Cormorant Garamond + Outfit (Google Fonts)
   ══════════════════════════════════════════ */

:root {
  --navy:        #1A4B6F;
  --ocean:       #2A6D9E;
  --ocean-mid:   #4E8FB5;
  --ocean-light: #D4E9F7;
  --blush:       #D9A0AF;
  --blush-light: #F5E6EA;
  --blush-deep:  #B06878;
  --gold:        #C49A5A;
  --gold-light:  #EFE0C8;
  --slate:       #1E2D3D;
  --slate-mid:   #445569;
  --muted:       #7A8899;
  --warm-white:  #FAFAF8;
  --soft-grey:   #F3F2EF;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --shadow-sm:   0 2px 12px rgba(26,75,111,0.08);
  --shadow-md:   0 8px 32px rgba(26,75,111,0.13);
  --shadow-lg:   0 20px 60px rgba(26,75,111,0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--warm-white);
  color: var(--slate);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--soft-grey); }
::-webkit-scrollbar-thumb { background: var(--ocean-mid); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--slate);
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: 1.08; margin-bottom: 1.6rem; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.05rem; font-weight: 600; font-family: 'Outfit', sans-serif; letter-spacing: 0; }

h1 em, h2 em { color: var(--navy); font-style: italic; font-weight: 600; }

p { font-family: 'Outfit', sans-serif; color: var(--slate-mid); line-height: 1.8; font-weight: 300; }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ocean); }

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

/* ── NAVIGATION ── */
#main-nav,
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(42,109,158,0.1);
  padding: 0 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  transition: box-shadow 0.3s;
}

#main-nav.scrolled,
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.site-logo,
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
}

.site-logo em,
.logo em {
  color: var(--blush-deep);
  font-style: italic;
  font-weight: 600;
}

.nav-links,
.main-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a,
.main-navigation ul li a {
  text-decoration: none;
  color: var(--slate-mid);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
  font-family: 'Outfit', sans-serif;
}

.nav-links a::after,
.main-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--ocean);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-links a:hover,
.main-navigation ul li a:hover {
  color: var(--ocean);
}

.nav-links a:hover::after,
.main-navigation ul li a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active,
.main-navigation ul li.current-menu-item a {
  color: var(--navy);
  font-weight: 600;
}

.nav-cta,
.nav-links a.nav-cta {
  background: var(--navy) !important;
  color: white !important;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta::after,
.nav-links a.nav-cta::after { display: none !important; }

.nav-cta:hover,
.nav-links a.nav-cta:hover {
  background: var(--ocean) !important;
  transform: translateY(-1px);
  color: white !important;
}

/* Mobile nav button */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}

.nav-mobile-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--navy);
  color: white;
  padding: 0.92rem 2.1rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(26,75,111,0.25);
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ocean);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,75,111,0.3);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  padding: 0.92rem 2.1rem;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid var(--navy);
  transition: all 0.2s;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--ocean-light);
  transform: translateY(-2px);
  color: var(--navy);
}

/* ── SHARED LAYOUT ── */
.section-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.73rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.75rem;
  display: block;
}

.section-sub {
  font-size: 1rem;
  color: var(--slate-mid);
  line-height: 1.8;
  max-width: 580px;
  font-weight: 300;
}

.divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--ocean-mid), var(--blush));
  border-radius: 2px;
  margin: 1rem 0 1.6rem;
}

/* ── FADE-IN ANIMATION ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
.site-footer,
footer {
  background: var(--slate);
  color: rgba(255,255,255,0.55);
  padding: 3.5rem 6%;
  text-align: center;
  font-size: 0.88rem;
  font-family: 'Outfit', sans-serif;
}

.site-footer .logo,
footer .logo {
  color: white;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.site-footer p,
footer p {
  margin-top: 0.35rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
  font-family: 'Outfit', sans-serif;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.8);
}

.footer-copy {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  opacity: 0.38;
}

/* ── WORDPRESS CORE OVERRIDES ── */
.wp-block-image img { border-radius: var(--radius-lg); }
.aligncenter { margin-left: auto; margin-right: auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }

/* ── HIDE DEFAULT PAGE TITLES (templates have their own headings) ── */
.page-template-front-page .entry-title,
.page-template-page-about .entry-title,
.page-template-page-contact .entry-title,
.page-template-front-page .entry-header,
.page-template-page-about .entry-header,
.page-template-page-contact .entry-header,
.home .entry-title,
.page .entry-title,
body.page h1.entry-title,
body.page .page-title {
  display: none !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  #main-nav, .site-header { padding: 0 5%; }
  .nav-links, .main-navigation ul { display: none; }
  .nav-mobile-btn { display: flex; }
}

@media (max-width: 560px) {
  section { padding: 80px 5%; }
  h1 { font-size: 2.7rem; }
}
