/*
Theme Name: Ekam Group
Theme URI: https://ekamgroup.co.uk
Author: Ekam Group
Author URI: https://ekamgroup.co.uk
Description: A bespoke theme for Ekam Group — property investment and management.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ekamgroup
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal: #1C1C1E;
  --ivory:    #F7F5F0;
  --slate:    #2D4A6E;
  --gold:     #C8A96E;
  --stone:    #9A9087;
  --white:    #FFFFFF;
  --mid:      #E8E4DC;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
}

/* ── NAV ── */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(28,28,30,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-monogram {
  width: 38px; height: 38px;
  background: var(--gold);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--charcoal);
  flex-shrink: 0;
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}
.nav-brand span { color: var(--gold); }

/* WordPress menu override */
#site-nav .nav-menu,
#site-nav ul.menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}

#site-nav .nav-menu a,
#site-nav ul.menu a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247,245,240,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
#site-nav .nav-menu a:hover,
#site-nav ul.menu a:hover { color: var(--gold); }

#site-nav .nav-menu .menu-item-pms > a,
#site-nav ul.menu .menu-item-pms > a {
  background: var(--gold);
  color: var(--charcoal);
  padding: 9px 20px;
  border-radius: 4px;
  font-weight: 600;
}
#site-nav .nav-menu .menu-item-pms > a:hover,
#site-nav ul.menu .menu-item-pms > a:hover { background: #d4b87a; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 72px;
}

.hero-left {
  background: var(--charcoal);
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 64px 80px 80px;
  position: relative; overflow: hidden;
}
.hero-left::before {
  content: 'E';
  position: absolute; bottom: -40px; right: -20px;
  font-family: 'Playfair Display', serif;
  font-size: 340px; font-weight: 700;
  color: rgba(200,169,110,0.07);
  line-height: 1; pointer-events: none; user-select: none;
}

.hero-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600; line-height: 1.12;
  color: var(--white); margin-bottom: 28px;
}
.hero-headline em { font-style: italic; color: var(--gold); }

.hero-body {
  font-size: 15.5px; line-height: 1.75;
  color: rgba(247,245,240,0.65);
  max-width: 420px; margin-bottom: 44px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-right {
  background: var(--slate);
  display: flex; align-items: center; justify-content: flex-end;
  padding: 80px 64px;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(247,245,240,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,245,240,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-stats { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 40px; }
.stat-item { border-left: 2px solid var(--gold); padding-left: 20px; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 700;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247,245,240,0.55);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--charcoal);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #d4b87a; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(200,169,110,0.45);
  color: rgba(247,245,240,0.8);
  font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 4px;
  text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── SHARED SECTION STYLES ── */
.eg-section { padding: 96px 80px; }
.eg-section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600; line-height: 1.2;
  color: var(--charcoal); margin-bottom: 16px;
}
.section-intro {
  font-size: 16px; line-height: 1.75;
  color: var(--stone); max-width: 580px; margin-bottom: 56px;
}
.divider { width: 48px; height: 2px; background: var(--gold); margin-bottom: 28px; }

/* ── ABOUT ── */
.about-section { padding: 96px 80px; background: var(--mid); }
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start;
}
.about-right p { font-size: 16px; line-height: 1.8; color: #4a4540; margin-bottom: 20px; }
.about-right p:last-child { margin-bottom: 0; }

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 2px; background: var(--mid);
}
.service-card {
  background: var(--white); padding: 40px 36px;
  transition: background 0.2s;
}
.service-card:hover { background: #faf9f6; }
.service-icon { width: 44px; height: 44px; margin-bottom: 24px; color: var(--slate); }
.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: var(--charcoal); margin-bottom: 12px;
}
.service-text { font-size: 14.5px; line-height: 1.7; color: var(--stone); }

/* ── PMS SECTION ── */
.pms-section { background: var(--charcoal); padding: 96px 80px; }
.pms-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.pms-left .section-title { color: var(--white); }
.pms-left .section-intro { color: rgba(247,245,240,0.6); margin-bottom: 36px; }
.pms-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 44px; }
.pms-feature { display: flex; align-items: flex-start; gap: 14px; }
.pms-feature-dot {
  width: 20px; height: 20px;
  background: rgba(200,169,110,0.15);
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
}
.pms-feature-dot::after {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
}
.pms-feature-text { font-size: 14.5px; color: rgba(247,245,240,0.75); line-height: 1.5; }

.pms-right {
  background: rgba(247,245,240,0.04);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 8px; padding: 48px 40px;
  position: relative; overflow: hidden;
}
.pms-right::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.pms-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600;
  color: var(--gold); margin-bottom: 28px;
  position: relative; z-index: 1;
}
.pms-modules { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.pms-module {
  background: rgba(28,28,30,0.6);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 5px; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.pms-module:hover { border-color: rgba(200,169,110,0.4); background: rgba(28,28,30,0.85); }
.pms-module-name { font-size: 13.5px; font-weight: 500; color: rgba(247,245,240,0.8); }
.pms-module-arrow { color: var(--gold); font-size: 16px; opacity: 0.7; }
.pms-cta-wrap { margin-top: 32px; position: relative; z-index: 1; }

/* ── FOOTER ── */
#site-footer {
  background: var(--charcoal);
  padding: 48px 80px;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(200,169,110,0.15);
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 15px; color: rgba(247,245,240,0.5);
}
.footer-links {
  display: flex; gap: 28px; list-style: none; margin-bottom: 8px; justify-content: flex-end;
}
.footer-links a {
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(247,245,240,0.45); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy { font-size: 13px; color: rgba(247,245,240,0.35); text-align: right; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  #site-nav { padding: 0 20px; }
  #site-nav .nav-menu, #site-nav ul.menu {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(28,28,30,0.98);
    padding: 16px 0; border-top: 1px solid rgba(200,169,110,0.2);
  }
  #site-nav .nav-menu.open, #site-nav ul.menu.open { display: flex; }
  #site-nav .nav-menu li, #site-nav ul.menu li { width: 100%; }
  #site-nav .nav-menu a, #site-nav ul.menu a {
    display: block; padding: 14px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  #site-nav .nav-menu .menu-item-pms > a,
  #site-nav ul.menu .menu-item-pms > a {
    margin: 12px 28px; border-radius: 4px; text-align: center;
  }
  .nav-toggle { display: block; }

  .hero { grid-template-columns: 1fr; }
  .hero-left { padding: 60px 28px; }
  .hero-left::before { font-size: 200px; }
  .hero-right { display: none; }

  .eg-section { padding: 64px 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .pms-section { padding: 64px 28px; }
  .pms-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-section { padding: 64px 28px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  #site-footer { flex-direction: column; gap: 24px; padding: 40px 28px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
