/*
Theme Name: Esto Quod Es
Theme URI: https://estoquodes.co.za/
Author: Esto Quod Es
Author URI: https://estoquodes.co.za/
Description: A premium one-page WordPress theme for Esto Quod Es, converted from the supplied Hostinger Horizons/React design.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: esto-quod-es
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
  --gold: #D4AF37;
  --gold-light: #E8D4A8;
  --gold-dark: #B8860B;
  --burgundy: #6A0D25;
  --dark: #111111;
  --light: #ffffff;
  --luxury-black: #111111;
  --cream: #f7f4ed;
  --text: #171717;
  --muted: #666666;
  --border: #e5e1d8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.7;
}

body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

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

a { color: var(--burgundy); text-decoration: none; }
a:hover { color: var(--gold-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.2;
  margin-top: 0;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 999;
  inset: 0 0 auto 0;
  transition: background .3s ease, box-shadow .3s ease;
  background: transparent;
}

.site-header.is-scrolled {
  background: var(--burgundy);
  box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-branding img {
  display: block;
  width: auto;
  max-height: 78px;
}

.site-title {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
}

.main-navigation a {
  color: #fff;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: .2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--gold);
  border-color: var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.metal-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a47e17;
  border-radius: 8px;
  padding: 13px 25px;
  color: #241d0d !important;
  background: linear-gradient(145deg, #E8D4A8 0%, #D4AF37 48%, #B8860B 100%);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.75), 0 5px 12px rgba(0,0,0,.18);
  transition: .2s ease;
}

.metal-button:hover {
  transform: translateY(-2px);
  color: #1b160b !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.9), 0 9px 18px rgba(0,0,0,.25);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: auto;
  padding-top: 80px;
}

.hero-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .9rem;
  font-weight: 700;
}

.hero h1 {
  color: var(--gold);
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  margin-bottom: 24px;
}

.hero p {
  max-width: 760px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.section {
  padding: 100px 0;
}

.section-muted {
  background: var(--cream);
  border-block: 1px solid var(--border);
}

.section-burgundy {
  background: var(--burgundy);
  color: #fff;
}

.section-title {
  color: var(--burgundy);
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 22px;
}

.section-burgundy .section-title { color: #fff; }

.section-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
  font-size: 1.12rem;
  color: var(--muted);
}

.section-burgundy .section-intro { color: rgba(255,255,255,.88); }

.values-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.services-grid .service-card:last-child {
  grid-column: 1 / -1;
  max-width: 650px;
  width: 100%;
  margin-inline: auto;
}

.service-card,
.value-card,
.testimonial-card {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover,
.value-card:hover,
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(0,0,0,.1);
}

.service-card h3,
.value-card h3 {
  color: var(--burgundy);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 70px;
}

.profile-image {
  position: relative;
}

.profile-image::after {
  content: "";
  position: absolute;
  inset: 25px -20px -20px 25px;
  background: rgba(212,175,55,.2);
  border-radius: 18px;
  z-index: 0;
}

.profile-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}

.profile-copy h2 {
  color: var(--burgundy);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 10px;
}

.profile-copy h3 {
  color: var(--gold-dark);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 1.2rem;
  margin-bottom: 28px;
}

.video-wrap {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0,0,0,.16);
  border: 1px solid var(--border);
}

.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.bootcamp {
  background: linear-gradient(135deg, rgba(106,13,37,.97), rgba(17,17,17,.97)),
    url("https://images.unsplash.com/photo-1539968409227-bdd2b92f31a9?auto=format&fit=crop&q=80&w=2000") center/cover;
  color: #fff;
}

.bootcamp-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 45px;
  align-items: center;
}

.focus-box {
  padding: 30px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(5px);
}

.focus-box h3 { color: var(--gold); }
.focus-box ul { margin: 0; padding-left: 20px; }
.focus-box li { margin: 10px 0; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 28px;
}

.testimonial-card {
  border-color: var(--border);
  border-width: 1px;
}

.testimonial-card blockquote {
  margin: 0 0 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.18rem;
  color: #333;
}

.testimonial-meta strong { display:block; color:var(--burgundy); }
.testimonial-meta span { color:var(--muted); font-size:.92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-list { list-style:none; padding:0; margin:30px 0 0; }
.contact-list li { margin-bottom:22px; }
.contact-label { display:block; color:var(--gold-dark); font-weight:800; }

.contact-form {
  background: var(--luxury-black);
  color:#fff;
  border-radius:16px;
  padding:35px;
}

.contact-form label {
  display:block;
  margin-bottom:7px;
  font-weight:600;
}

.contact-form input,
.contact-form textarea {
  width:100%;
  border:1px solid rgba(255,255,255,.2);
  border-radius:7px;
  padding:12px 14px;
  margin-bottom:18px;
  font:inherit;
}

.contact-form textarea { min-height:140px; resize:vertical; }

.site-footer {
  background: var(--luxury-black);
  color:#fff;
  padding:70px 0 30px;
}

.footer-grid {
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap:45px;
  margin-bottom:45px;
}

.site-footer h3 { color:#fff; font-family:"DM Sans",Arial,sans-serif; text-transform:uppercase; letter-spacing:.08em; font-size:1rem; }
.site-footer p, .site-footer li { color:rgba(255,255,255,.72); }
.site-footer a { color:rgba(255,255,255,.9); }
.site-footer a:hover { color:var(--gold); }
.footer-links { list-style:none; margin:0; padding:0; }
.footer-links li { margin:10px 0; }
.footer-bottom {
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:25px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  flex-wrap:wrap;
  color:rgba(255,255,255,.5);
  font-size:.9rem;
}

.fade-in { animation: fadeIn .8s ease-out both; }
@keyframes fadeIn {
  from { opacity:0; transform:translateY(15px); }
  to { opacity:1; transform:translateY(0); }
}

.screen-reader-text {
  border:0;
  clip:rect(1px,1px,1px,1px);
  clip-path:inset(50%);
  height:1px;
  margin:-1px;
  overflow:hidden;
  padding:0;
  position:absolute!important;
  width:1px;
  word-wrap:normal!important;
}

@media (max-width: 900px) {
  .menu-toggle { display:block; }
  .main-navigation {
    display:none;
    position:absolute;
    left:0; right:0; top:100%;
    background:var(--burgundy);
    padding:15px 20px 25px;
    box-shadow:0 10px 20px rgba(0,0,0,.2);
  }
  .main-navigation.is-open { display:block; }
  .main-navigation ul { flex-direction:column; align-items:stretch; gap:0; }
  .main-navigation a { display:block; padding:13px 5px; }
  .header-inner { min-height:88px; }
  .profile-grid, .bootcamp-grid, .contact-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 650px) {
  .container { width:min(100% - 28px, 1200px); }
  .section { padding:75px 0; }
  .values-grid, .services-grid, .testimonials-grid, .footer-grid { grid-template-columns:1fr; }
  .services-grid .service-card:last-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .site-branding img { max-height:58px; }
}
