/*
 * Tertios Landing Page Styles
 * File: tertios-landing.css
 * Place in: wp-content/themes/your-theme/css/tertios-landing.css
 * Enqueue via functions.php (see snippet in README)
 *
 * All classes are prefixed with "tl-" to avoid conflicts with your theme.
 */

/* ===== RESET & BASE ===== */
#tertios-landing {
  --tl-navy:        #1a3a5c;
  --tl-orange:      #f07820;
  --tl-orange-lt:   #ffa04a;
  --tl-white:       #ffffff;
  --tl-off-white:   #f7f9fc;
  --tl-light-gray:  #eef2f7;
  --tl-text:        #1e2d3d;
  --tl-muted:       #5a7089;
  --tl-shadow:      0 4px 30px rgba(26,58,92,0.10);
  --tl-shadow-lg:   0 12px 60px rgba(26,58,92,0.18);

  font-family: 'DM Sans', sans-serif;
  color: var(--tl-text);
  line-height: 1.6;
}

#tertios-landing *, #tertios-landing *::before, #tertios-landing *::after {
  box-sizing: border-box;
}

/* Google Fonts are loaded in functions.php enqueue */

/* ===== LAYOUT ===== */
.tl-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

.tl-section { padding: 96px 0; }
.tl-section--light { background: var(--tl-off-white); }
.tl-section--dark  { background: var(--tl-navy); }

/* ===== TYPOGRAPHY ===== */
.tl-tag {
  display: inline-block;
  font-family: 'Sora', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--tl-orange); margin-bottom: 12px;
}
.tl-tag--light { color: var(--tl-orange-lt); }

.tl-section__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; line-height: 1.2;
  color: var(--tl-navy); margin-bottom: 16px;
}
.tl-section__title--light { color: var(--tl-white); }

.tl-section__sub {
  font-size: 1.05rem; color: var(--tl-muted);
  line-height: 1.7; max-width: 620px; margin-bottom: 56px;
}
.tl-section__sub--light { color: rgba(255,255,255,0.6); }

/* ===== BUTTONS ===== */
.tl-btn {
  display: inline-block; text-decoration: none;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem;
  border-radius: 8px; padding: 14px 32px;
  transition: all 0.25s; cursor: pointer; border: none;
}
.tl-btn--primary {
  background: var(--tl-orange); color: var(--tl-white);
  box-shadow: 0 4px 20px rgba(240,120,32,0.4);
}
.tl-btn--primary:hover { background: var(--tl-orange-lt); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240,120,32,0.5); color: white; }

.tl-btn--ghost {
  border: 2px solid rgba(255,255,255,0.3); color: var(--tl-white);
}
.tl-btn--ghost:hover { border-color: var(--tl-orange); color: var(--tl-orange); }

.tl-btn--nav {
  background: var(--tl-orange); color: var(--tl-white);
  padding: 10px 22px; font-size: 0.85rem; border-radius: 6px;
  white-space: nowrap;
}
.tl-btn--nav:hover { background: var(--tl-navy); color: white; transform: translateY(-1px); }

.tl-btn--white {
  background: var(--tl-white); color: var(--tl-orange);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.tl-btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); color: var(--tl-orange); }

.tl-btn--outline-white {
  border: 2px solid rgba(255,255,255,0.7); color: var(--tl-white);
}
.tl-btn--outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--tl-white); color: white; }

/* ===== NAV ===== */
.tl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,58,92,0.08);
  padding: 0 5%;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.tl-nav__logo img { height: 48px; display: block; }
.tl-nav__links {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.tl-nav__links a {
  text-decoration: none; color: var(--tl-navy);
  font-family: 'Sora', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s;
}
.tl-nav__links a:hover { color: var(--tl-orange); }
.tl-nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.tl-nav__burger span {
  display: block; width: 24px; height: 2px;
  background: var(--tl-navy); border-radius: 2px;
}

/* ===== HERO ===== */
.tl-hero {
  min-height: 100vh; background: var(--tl-navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 72px;
}
.tl-hero__bg-circle {
  position: absolute; border-radius: 50%;
}
.tl-hero__bg-circle--1 {
  right: -80px; bottom: -80px; width: 700px; height: 700px;
  background: var(--tl-orange); opacity: 0.08;
}
.tl-hero__bg-circle--2 {
  right: 15%; top: 10%; width: 320px; height: 320px;
  border: 2px solid rgba(240,120,32,0.2);
}
.tl-hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; width: 100%; padding: 80px 5%;
}

.tl-hero__text { animation: tlFadeUp 0.9s ease both; }

.tl-badge {
  display: inline-block;
  background: rgba(240,120,32,0.15); border: 1px solid rgba(240,120,32,0.4);
  color: var(--tl-orange-lt);
  font-family: 'Sora', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 28px;
  display: inline-block;
}
.tl-hero__text h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.12;
  color: var(--tl-white); margin: 0 0 20px;
}
.tl-hero__text h1 span { color: var(--tl-orange); }
.tl-hero__text p {
  font-size: 1.1rem; line-height: 1.75;
  color: rgba(255,255,255,0.7); margin-bottom: 40px; max-width: 480px;
}
.tl-hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.tl-hero__visual { animation: tlFadeUp 0.9s 0.2s ease both; }
.tl-hero__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 36px; backdrop-filter: blur(20px);
}
.tl-hero__card-logo { width: 220px; margin-bottom: 32px; display: block; }

.tl-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.tl-pill {
  background: rgba(240,120,32,0.15); border: 1px solid rgba(240,120,32,0.3);
  color: var(--tl-orange-lt); font-family: 'Sora', sans-serif;
  font-size: 0.8rem; font-weight: 700; padding: 6px 14px; border-radius: 100px;
  letter-spacing: 0.05em; transition: all 0.2s;
}
.tl-pill:hover { background: var(--tl-orange); color: white; }

.tl-hero__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.tl-stat { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 16px; text-align: center; }
.tl-stat__num { font-family: 'Sora', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--tl-orange); display: block; }
.tl-stat__label { font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 4px; display: block; }

/* ===== GRIDS ===== */
.tl-grid { display: grid; gap: 28px; }
.tl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.tl-grid--4 { grid-template-columns: repeat(4, 1fr); }
.tl-grid--modules { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

/* ===== CARDS ===== */
.tl-card--why {
  background: var(--tl-white); border-radius: 16px;
  padding: 36px 30px; box-shadow: var(--tl-shadow);
  border-top: 4px solid var(--tl-orange);
  transition: transform 0.3s, box-shadow 0.3s;
}
.tl-card--why:hover { transform: translateY(-6px); box-shadow: var(--tl-shadow-lg); }
.tl-card__icon {
  width: 52px; height: 52px; background: rgba(240,120,32,0.1);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.tl-card--why h3 {
  font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700;
  color: var(--tl-navy); margin: 0 0 10px;
}
.tl-card--why p { font-size: 0.92rem; color: var(--tl-muted); line-height: 1.7; margin: 0; }

.tl-card--module {
  border: 1.5px solid var(--tl-light-gray); border-radius: 16px;
  padding: 32px 28px; transition: all 0.3s; position: relative; overflow: hidden;
  background: var(--tl-white);
}
.tl-card--module::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--tl-orange); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.tl-card--module:hover { border-color: rgba(240,120,32,0.3); box-shadow: var(--tl-shadow-lg); }
.tl-card--module:hover::before { transform: scaleX(1); }
.tl-module-tag {
  font-family: 'Sora', sans-serif; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--tl-orange); background: rgba(240,120,32,0.08);
  padding: 4px 12px; border-radius: 6px; display: inline-block; margin-bottom: 16px;
}
.tl-card--module h3 { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--tl-navy); margin: 0 0 10px; }
.tl-card--module p  { font-size: 0.9rem; color: var(--tl-muted); line-height: 1.7; margin: 0; }
.tl-feature-list { list-style: none; margin: 16px 0 0; padding: 0; }
.tl-feature-list li {
  font-size: 0.85rem; color: var(--tl-muted); padding: 4px 0 4px 18px; position: relative;
}
.tl-feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--tl-orange); font-weight: 700; }

.tl-card--forwhom {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 32px 28px; transition: all 0.3s;
}
.tl-card--forwhom:hover { background: rgba(240,120,32,0.12); border-color: rgba(240,120,32,0.4); }
.tl-card__big-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.tl-card--forwhom h3 { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--tl-white); margin: 0 0 8px; }
.tl-card--forwhom p  { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.65; margin: 0; }

/* ===== CLOUD ===== */
.tl-cloud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tl-cloud-features { list-style: none; margin: 0; padding: 0; }
.tl-cloud-features li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--tl-light-gray);
  font-size: 0.95rem;
}
.tl-cloud-features li:last-child { border-bottom: none; }
.tl-cf-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.tl-cloud-features strong { font-family: 'Sora', sans-serif; font-weight: 600; color: var(--tl-navy); display: block; margin-bottom: 2px; }
.tl-cloud-features span  { color: var(--tl-muted); font-size: 0.85rem; }

.tl-cloud-visual {
  background: var(--tl-navy); border-radius: 20px; padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.tl-cloud-badge {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px; padding: 16px 20px;
  color: rgba(255,255,255,0.8); font-size: 0.9rem;
}
.tl-cloud-badge > span { font-size: 1.4rem; flex-shrink: 0; }
.tl-cloud-badge strong { font-family: 'Sora', sans-serif; font-size: 0.85rem; display: block; color: var(--tl-orange-lt); margin-bottom: 2px; }

/* ===== CTA BANNER ===== */
.tl-cta-banner {
  background: linear-gradient(135deg, var(--tl-orange) 0%, #d4600a 100%);
  padding: 96px 0; text-align: center;
}
.tl-cta-banner h2 {
  font-family: 'Sora', sans-serif; font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; color: var(--tl-white); margin: 0 0 16px;
}
.tl-cta-banner p {
  font-size: 1.1rem; color: rgba(255,255,255,0.85); margin: 0 auto 40px; max-width: 520px;
}
.tl-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== CONTACT ===== */
.tl-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.tl-contact-info h3 {
  font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 700;
  color: var(--tl-navy); margin: 0 0 28px;
}
.tl-contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.tl-contact-item__icon {
  width: 40px; height: 40px; background: rgba(240,120,32,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.tl-contact-item__text { font-size: 0.92rem; color: var(--tl-muted); line-height: 1.6; }
.tl-contact-item__text strong { color: var(--tl-navy); font-family: 'Sora', sans-serif; font-size: 0.85rem; display: block; margin-bottom: 2px; }
.tl-contact-item__text a { color: var(--tl-orange); text-decoration: none; }

.tl-contact-form { background: var(--tl-off-white); border-radius: 20px; padding: 40px; }
.tl-form-group { margin-bottom: 20px; }
.tl-form-group label {
  display: block; font-family: 'Sora', sans-serif; font-size: 0.8rem; font-weight: 600;
  color: var(--tl-navy); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}
.tl-form-group input,
.tl-form-group textarea,
.tl-form-group select {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid #dde4ed; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem; color: var(--tl-text);
  background: var(--tl-white); transition: border-color 0.2s; outline: none;
}
.tl-form-group input:focus,
.tl-form-group textarea:focus,
.tl-form-group select:focus { border-color: var(--tl-orange); }
.tl-form-group textarea { resize: vertical; min-height: 120px; }
.tl-form-submit {
  width: 100%; background: var(--tl-orange); color: var(--tl-white);
  border: none; padding: 14px; border-radius: 8px; cursor: pointer;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 0.95rem;
  transition: all 0.25s; letter-spacing: 0.04em;
}
.tl-form-submit:hover { background: var(--tl-navy); transform: translateY(-1px); }
.tl-form-success {
  background: #e6f9f0; border: 1px solid #34c47c; color: #1a7a47;
  border-radius: 10px; padding: 20px; font-family: 'Sora', sans-serif;
  font-weight: 600; text-align: center;
}
.tl-form-error {
  background: #fff0f0; border: 1px solid #e87070; color: #b03030;
  border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.tl-footer { background: var(--tl-navy); padding: 40px 5%; text-align: center; }
.tl-footer img { height: 40px; margin-bottom: 20px; display: block; margin-left: auto; margin-right: auto; filter: brightness(0) invert(1); opacity: 0.6; }
.tl-footer__links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.tl-footer__links a { font-size: 0.82rem; color: rgba(255,255,255,0.5); text-decoration: none; }
.tl-footer__links a:hover { color: var(--tl-orange); }
.tl-footer p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.tl-footer p a { color: rgba(255,255,255,0.45); text-decoration: none; }
.tl-footer p a:hover { color: var(--tl-orange); }

/* ===== ANIMATION ===== */
@keyframes tlFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tl-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tl-hero__inner  { grid-template-columns: 1fr; }
  .tl-hero__visual { display: none; }
  .tl-cloud-grid   { grid-template-columns: 1fr; }
  .tl-contact-grid { grid-template-columns: 1fr; }
  .tl-grid--3      { grid-template-columns: repeat(2, 1fr); }
  .tl-nav__links   { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: white; padding: 20px 5%; border-bottom: 1px solid var(--tl-light-gray); z-index: 999; gap: 16px; }
  .tl-nav__links.tl-nav__links--open { display: flex; }
  .tl-nav__burger  { display: flex; }
}
@media (max-width: 580px) {
  .tl-grid--3, .tl-grid--4 { grid-template-columns: 1fr; }
  .tl-section { padding: 64px 0; }
  .tl-contact-form { padding: 24px; }
}
