/*
Theme Name: TocaEzzo Modern
Theme URI: https://tocaezzo.com/
Author: Ezzo Group
Description: A modern corporate WordPress theme for TocaEzzo, an Ezzo Group subsidiary.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: tocaezzo-modern
*/

:root {
  --green: #166b3a;
  --green-2: #0f4f31;
  --mint: #e9f4ed;
  --gold: #c69a45;
  --blue: #254a5f;
  --ink: #17231d;
  --muted: #64726b;
  --line: #dde6df;
  --paper: #f6f8f3;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(23, 35, 29, 0.12);
  --container: min(1180px, calc(100vw - 40px));
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(221, 230, 223, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}
.site-header.is-scrolled {
  border-color: rgba(202, 216, 207, 0.95);
  box-shadow: 0 12px 34px rgba(23, 35, 29, 0.08);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: var(--container);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  text-decoration: none;
}
.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(22, 107, 58, 0.1);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name {
  color: var(--green-2);
  font-size: 1.18rem;
  font-weight: 900;
  text-transform: uppercase;
}
.brand-tagline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nav-toggle svg { width: 22px; height: 22px; }
.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 0.91rem;
  border-radius: var(--radius);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.primary-navigation a:hover {
  color: var(--green-2);
  background: var(--mint);
  transform: translateY(-1px);
}
.language-switcher a {
  color: var(--blue);
  background: #edf5f7;
  border: 1px solid #d6e5e9;
}

.site-main { overflow: hidden; }
.container { width: var(--container); margin: 0 auto; }
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--paper); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.35rem, 5vw, 5.2rem); max-width: 920px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: 1.22rem; }
p { margin: 0; }
.lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}
.text-link {
  color: #1262b0;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero,
.page-hero {
  position: relative;
  color: var(--white);
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(8, 30, 20, 0.88), rgba(8, 30, 20, 0.48) 56%, rgba(8, 30, 20, 0.12)),
    var(--hero-image) center/cover no-repeat;
}
.hero { min-height: calc(100vh - 78px); display: flex; align-items: center; }
.hero::before,
.page-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.1) 49%, transparent 56%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 118px);
  opacity: 0.48;
  z-index: -1;
}
.hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: 96px 0 120px;
}
.hero h1,
.hero p,
.page-hero h1,
.page-hero p,
.cta-band h2,
.cta-band p { color: var(--white); }
.hero .eyebrow,
.page-hero .eyebrow,
.cta-band .eyebrow { color: #e7d29d; }
.hero-lead {
  max-width: 760px;
  margin-top: 24px;
  color: #eef6f0;
  font-size: clamp(1.08rem, 2vw, 1.26rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 14px 28px rgba(22, 107, 58, 0.24);
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-3px); background: var(--green-2); box-shadow: 0 20px 36px rgba(15, 79, 49, 0.27); }
.button svg { width: 18px; height: 18px; }
.button-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.48);
}
.button-ghost:hover { color: var(--ink); background: var(--white); border-color: var(--white); }

.page-hero { padding: 108px 0 82px; }
.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.18rem;
  color: #eef6f0;
}

.stats-band { margin-top: -48px; position: relative; z-index: 2; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stats-grid article {
  padding: 26px;
  border-right: 1px solid var(--line);
}
.stats-grid article:last-child { border-right: 0; }
.stats-grid strong {
  display: block;
  color: var(--green-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
}
.stats-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}
.split-reverse > :first-child { order: 2; }
.section-copy { display: grid; gap: 20px; }
.section-heading {
  max-width: 840px;
  margin-bottom: 34px;
}
.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}
.check-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--green);
}
.image-stack {
  position: relative;
  min-height: 520px;
}
.image-stack img,
.media-card img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-stack img:first-child {
  position: absolute;
  inset: 0 auto auto 0;
  width: 68%;
  height: 62%;
}
.image-stack img:nth-child(2) {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 66%;
  height: 64%;
  border: 10px solid var(--white);
}
.image-note {
  position: absolute;
  left: 28px;
  bottom: 30px;
  width: min(260px, calc(100% - 56px));
  padding: 18px;
  color: var(--white);
  background: var(--green-2);
  border-radius: var(--radius);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}
.image-note strong { display: block; font-size: 1.28rem; line-height: 1.1; }
.image-note span { display: block; margin-top: 8px; color: #dcebdd; font-weight: 750; }
.media-card img { aspect-ratio: 1.28; }
.feature-panel {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-panel p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.info-card,
.contact-card {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(23, 35, 29, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.info-card:hover,
.contact-card:hover {
  transform: translateY(-6px);
  border-color: #bdd5c5;
  box-shadow: 0 22px 48px rgba(23, 35, 29, 0.12);
}
.info-card > span,
.contact-card > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--green-2);
  background: var(--mint);
  border: 1px solid #d5e8da;
  border-radius: var(--radius);
}
.info-card svg,
.contact-card svg { width: 24px; height: 24px; }
.info-card p,
.contact-card p { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-card { grid-template-columns: 48px 1fr; }
.contact-card a { color: var(--green-2); font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.contact-panel {
  grid-column: span 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 34px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 79, 49, 0.94), rgba(37, 74, 95, 0.82)),
    url("https://tocaezzo.com/wp-content/uploads/2025/02/ter-011619-1366x534-c-default.jpg") center/cover no-repeat;
  border-radius: var(--radius);
}
.contact-panel h2,
.contact-panel p { color: var(--white); }
.contact-panel p { max-width: 560px; margin-top: 12px; color: #eef6f0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 14px 32px rgba(23, 35, 29, 0.1);
}

.product-groups {
  display: grid;
  gap: 28px;
}
.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 28px;
}
.metric-strip span {
  padding: 8px 12px;
  color: var(--green-2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 0.9rem;
}
.product-group {
  display: grid;
  gap: 18px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-grid article {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 35, 29, 0.06);
}
.product-grid strong {
  display: block;
  color: var(--green-2);
  font-size: 1.05rem;
}
.product-grid p {
  margin-top: 8px;
  color: var(--muted);
}
.map-action {
  margin-top: 20px;
}
.form-section {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  align-items: start;
}
.form-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-band {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 79, 49, 0.94), rgba(37, 74, 95, 0.78)),
    url("https://tocaezzo.com/wp-content/uploads/2025/02/iStock-1189924791.webp") center/cover no-repeat;
  isolation: isolate;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}
.cta-inner p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 16px;
  color: #eef6f0;
}

.site-footer {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(8, 30, 20, 0.93), rgba(8, 30, 20, 0.86)),
    url("https://tocaezzo.com/wp-content/uploads/2025/02/nature-garden-leaves-background_1340-7949.jpg") center/cover no-repeat;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.95fr 1fr;
  gap: 32px;
  padding: 62px 0;
}
.footer-logo {
  width: 132px;
  padding: 12px;
  margin-bottom: 18px;
  background: var(--white);
  border-radius: var(--radius);
}
.footer-grid h2,
.footer-grid h3,
.footer-grid p { color: var(--white); }
.footer-grid h3 {
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.96rem;
  text-transform: uppercase;
}
.subsidiary { margin-top: 8px; color: #dcebdd !important; font-weight: 800; }
.footer-links,
.footer-contact {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-contact a {
  color: #eef6f0;
  text-decoration: none;
  font-weight: 750;
}
.footer-bottom {
  padding: 16px 0;
  color: #dcebdd;
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.9rem;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}
.js-enabled .reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.toca-arabic {
  direction: rtl;
  text-align: right;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}
.toca-arabic h1,
.toca-arabic h2,
.toca-arabic h3 { font-family: "Segoe UI", Tahoma, Arial, sans-serif; font-weight: 900; }
.toca-arabic .hero,
.toca-arabic .page-hero {
  background:
    linear-gradient(270deg, rgba(8, 30, 20, 0.88), rgba(8, 30, 20, 0.48) 56%, rgba(8, 30, 20, 0.12)),
    var(--hero-image) center/cover no-repeat;
}
.toca-arabic .button svg { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button,
  .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1060px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid article:nth-child(2) { border-right: 0; }
  .stats-grid article:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul {
    width: var(--container);
    margin: 0 auto;
    padding: 12px 0 18px;
    display: grid;
    gap: 6px;
  }
  .primary-navigation a { width: 100%; min-height: 46px; }
  .hero { min-height: auto; }
  .hero-inner { padding: 86px 0 116px; }
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .contact-panel {
    grid-column: auto;
    display: grid;
  }
  .form-section { grid-template-columns: 1fr; }
  .cta-inner,
  .footer-bottom .container {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  :root { --container: min(100vw - 28px, 1180px); }
  body { font-size: 15px; }
  .brand-tagline { display: none; }
  .brand-mark { width: 44px; height: 44px; }
  .section { padding: 68px 0; }
  .section-tight { padding: 48px 0; }
  h1 { font-size: clamp(2rem, 10vw, 3rem); }
  h2 { font-size: clamp(1.72rem, 8vw, 2.45rem); }
  .hero-inner { padding: 68px 0 106px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .stats-grid,
  .cards-grid,
  .footer-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .stats-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .stats-grid article:last-child { border-bottom: 0; }
  .image-stack { min-height: auto; display: grid; gap: 16px; }
  .image-stack img:first-child,
  .image-stack img:nth-child(2),
  .image-note {
    position: static;
    width: 100%;
    height: auto;
    border: 0;
  }
  .image-stack img,
  .media-card img { aspect-ratio: 1.12; }
  .page-hero { padding: 76px 0 60px; }
  .contact-card { grid-template-columns: 1fr; }
  .feature-panel,
  .contact-panel { padding: 26px; }
}
