/*
Theme Name: Digue Attorneys
Theme URI: https://digue.co.za
Author: Digue Attorneys Inc.
Author URI: https://digue.co.za
Description: Custom theme for Digue Attorneys and Conveyancers
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: digue-attorneys
*/

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

:root {
  --black: #000000;
  --white: #ffffff;
  --off-white: #f8f6f3;
  --red: #c41e2a;
  --red-dark: #8b1219;
  --gray-light: #e8e5e0;
  --gray-mid: #9a9590;
  --gray-text: #4a4642;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── NAV ─────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 90px;
  backdrop-filter: blur(8px);
}

.site-logo a {
  display: flex;
  align-items: center;
}

/* Logo is a JPEG with black background */
.site-logo img {
  height: 72px;
  width: 72px;
  object-fit: cover;
  object-position: center 60%;
  border-radius: 3px;
}

.nav-menu {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-menu li a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-text);
  transition: color 0.2s;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 0.3s;
}

.nav-menu li a:hover { color: var(--black); }
.nav-menu li a:hover::after { width: 100%; }

.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: 0 !important;
  transition: background 0.2s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

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

.hero-left {
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 6vw 80px 8vw;
  position: relative;
  overflow: hidden;
}

.hero-left::before {
  content: 'DA';
  position: absolute;
  bottom: -60px; right: -40px;
  font-family: var(--font-serif);
  font-size: 280px;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-logo img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  /* Black bg blends into the dark hero panel */
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 32px;
}

.hero-title em {
  font-style: italic;
  color: var(--gray-light);
}

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 380px;
  margin-bottom: 48px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-sans);
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); color: var(--white); }

.btn-outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  padding: 13px 36px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-sans);
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

.hero-right {
  overflow: hidden;
  min-height: 520px;
}
.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* ─── VALUES STRIP ────────────────────────── */
.values-strip {
  background: var(--red);
  padding: 20px 8vw;
  display: flex;
  gap: 48px;
  overflow-x: auto;
  align-items: center;
  flex-wrap: wrap;
}
.values-strip span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  white-space: nowrap;
}
.values-strip .sep {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ─── SECTION SHARED ──────────────────────── */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 28px;
}
.section-title em { font-style: italic; }
.section-body {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.9;
  margin-bottom: 20px;
}

/* ─── ABOUT ───────────────────────────────── */
.about-section {
  padding: 100px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--gray-light);
  margin-top: 48px;
}
.stat-box {
  background: var(--white);
  padding: 32px 28px;
}
.stat-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
}
.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 500;
  margin-top: 8px;
}

.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  right: 20px; bottom: 20px;
  border: 1px solid var(--gray-light);
  z-index: 0;
}
.about-image {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.about-image-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 20px 24px;
  z-index: 2;
}
.about-image-caption strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 2px;
}
.about-image-caption span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

/* ─── SERVICES ────────────────────────────── */
.services-section {
  background: var(--off-white);
  padding: 100px 8vw;
}
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
  align-items: end;
}
.services-intro {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.9;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-light);
}
.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.3s;
}
.service-card:hover { background: var(--black); }
.service-icon {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.service-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 28px;
  line-height: 1.2;
  transition: color 0.3s;
}
.service-card:hover .service-name { color: var(--white); }
.service-items { display: flex; flex-direction: column; }
.service-items li {
  font-size: 13px;
  color: var(--gray-text);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.3s, border-color 0.3s;
}
.service-items li:last-child { border-bottom: none; }
.service-card:hover .service-items li {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.12);
}

/* ─── MISSION & VISION ────────────────────── */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.mv-panel {
  padding: 80px 7vw;
  position: relative;
}
.mv-panel.dark { background: var(--black); color: var(--white); }
.mv-panel.light { background: var(--off-white); }
.mv-number {
  font-family: var(--font-serif);
  font-size: 120px;
  font-weight: 300;
  line-height: 1;
  position: absolute;
  top: 32px; right: 32px;
  opacity: 0.06;
  user-select: none;
  pointer-events: none;
}
.mv-tag {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
  margin-bottom: 24px;
}
.mv-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  margin-bottom: 24px;
  line-height: 1.2;
}
.mv-panel.dark .mv-title { color: var(--white); }
.mv-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-text);
  font-weight: 300;
}
.mv-panel.dark .mv-text { color: rgba(255,255,255,0.65); }

/* ─── CORE VALUES ─────────────────────────── */
.core-values-section {
  padding: 100px 8vw;
  text-align: center;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--gray-light);
  margin-top: 56px;
}
.value-item {
  background: var(--white);
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.3s;
}
.value-item:hover { background: var(--black); }
.value-line { width: 28px; height: 2px; background: var(--red); }
.value-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  transition: color 0.3s;
}
.value-item:hover .value-name { color: var(--white); }

/* ─── CLIENTELE ───────────────────────────── */
.clientele-section {
  background: var(--black);
  padding: 100px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.clientele-section .section-title { color: var(--white); }
.clientele-section .section-body { color: rgba(255,255,255,0.6); }
.client-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(255,255,255,0.1);
}
.client-type {
  background: rgba(255,255,255,0.05);
  padding: 28px 24px;
  border-left: 3px solid var(--red);
  transition: background 0.3s;
}
.client-type:hover { background: rgba(255,255,255,0.1); }
.client-type-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
}
.client-type-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.6;
}

/* ─── CONTACT ─────────────────────────────── */
.contact-section {
  padding: 100px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid var(--gray-light);
}
.contact-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-light);
  align-items: start;
}
.contact-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  font-weight: 500;
  padding-top: 2px;
}
.contact-value {
  font-size: 15px;
  color: var(--black);
  font-weight: 300;
  line-height: 1.6;
}
.contact-value a { color: var(--red); transition: color 0.2s; }
.contact-value a:hover { color: var(--red-dark); }

.contact-form-wrap {
  background: var(--off-white);
  padding: 48px 40px;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-mid);
}
.form-group input,
.form-group select,
.form-group textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  border: 1px solid var(--gray-light) !important;
  background: var(--white) !important;
  padding: 12px 16px !important;
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  color: var(--black) !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  border-radius: 0 !important;
  width: 100% !important;
  -webkit-appearance: none;
  box-shadow: none !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--black) !important; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-submit,
.wpcf7-form input[type="submit"] {
  width: 100% !important;
  background: var(--black) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 16px !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  border-radius: 0 !important;
}
.form-submit:hover,
.wpcf7-form input[type="submit"]:hover { background: var(--red) !important; }

/* CF7 response messages */
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-family: var(--font-sans) !important;
  border-left: 3px solid var(--red) !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* ─── FOOTER ──────────────────────────────── */
.site-footer {
  background: var(--black);
  padding: 60px 8vw 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  border-radius: 3px;
}
.footer-brand-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-top: 20px;
  max-width: 300px;
}
.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-links .footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 4px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── SCROLL REVEAL ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .about-section,
  .services-header,
  .mission-vision,
  .clientele-section,
  .contact-section { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 90px; left: 0; right: 0;
    background: var(--white);
    padding: 24px 5vw;
    border-bottom: 1px solid var(--gray-light);
    gap: 20px;
    z-index: 99;
  }
  .menu-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .services-grid,
  .client-types,
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap { padding: 32px 24px; }
  .about-section,
  .services-section,
  .core-values-section,
  .contact-section { padding: 64px 6vw; }
}
