/*
Theme Name: Four Sides Landscape
Theme URI: https://4sideslandscape.com
Author: 4 SIDES
Author URI: https://4sideslandscape.com
Description: A bilingual, editable block theme for Four Sides Landscape & Garden Maintenance in Jeddah.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: four-sides
Tags: full-site-editing, block-patterns, rtl-language-support, translation-ready, portfolio
*/

:root {
  --fs-forest: #123c2b;
  --fs-green: #177a3c;
  --fs-leaf: #5ca63a;
  --fs-sand: #f4efe5;
  --fs-ink: #17211c;
  --fs-muted: #66736c;
  --fs-white: #ffffff;
  --fs-radius: 24px;
  --fs-shadow: 0 18px 50px rgba(18, 60, 43, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.fs-english-page,
.fs-header-en,
.fs-footer-en {
  direction: ltr;
  text-align: left;
  font-family: Inter, Arial, sans-serif;
}

a { text-underline-offset: 0.18em; }

.fs-topbar a,
.fs-site-header a,
.fs-site-footer a { text-decoration: none; }

.fs-topbar a { color: #fff; }

.fs-topbar {
  font-size: 0.875rem;
}

.fs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 10px 32px rgba(18, 60, 43, 0.08);
  backdrop-filter: blur(16px);
}

.admin-bar .fs-site-header { top: 32px; }

.fs-brand-lockup {
  min-width: max-content;
}

.fs-brand-mark {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  padding: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(18, 60, 43, 0.12);
}

.fs-brand-mark img {
  width: 76px !important;
  height: 76px !important;
  padding: 0;
  object-fit: contain;
}

.fs-skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 9999;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: #fff;
  color: var(--fs-forest);
  font-weight: 900;
  transform: translateY(-180%);
  transition: transform 140ms ease;
}

.fs-skip-link:focus { transform: translateY(0); }

.fs-brand-name {
  line-height: 1.15;
}

.fs-brand-name small {
  display: block;
  margin-top: 0.25rem;
  color: var(--fs-muted);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.fs-navigation .wp-block-navigation-item__content {
  color: var(--fs-ink);
  font-size: 0.95rem;
  font-weight: 700;
  padding-block: 0.65rem;
}

.fs-navigation .wp-block-navigation-item__content:hover { color: var(--fs-green); }

.fs-header-cta .wp-block-button__link {
  white-space: nowrap;
}

.fs-hero {
  min-height: min(760px, 88vh);
  isolation: isolate;
}

.fs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 40, 28, 0.05) 0%, rgba(10, 40, 28, 0.25) 45%, rgba(10, 40, 28, 0.84) 100%);
}

[dir="ltr"] .fs-hero::after,
.fs-english-page .fs-hero::after,
.fs-hero-en::after {
  background: linear-gradient(90deg, rgba(10, 40, 28, 0.86) 0%, rgba(10, 40, 28, 0.28) 56%, rgba(10, 40, 28, 0.05) 100%);
}

.fs-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

.fs-eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.fs-hero-copy {
  max-width: 680px;
}

.fs-hero-copy h1 {
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.25);
}

.fs-hero-copy > p {
  max-width: 610px;
}

.fs-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.fs-trust-pill {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.fs-section {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.fs-section-tight {
  padding-block: clamp(3.25rem, 6vw, 5rem);
}

.fs-section-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.fs-kicker {
  margin-bottom: 0.75rem;
  color: var(--fs-green);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fs-service-grid,
.fs-feature-grid,
.fs-client-grid,
.fs-process-grid {
  margin-top: 2.75rem;
}

.fs-card {
  height: 100%;
  padding: clamp(1.4rem, 2vw, 2rem);
  border: 1px solid rgba(18, 60, 43, 0.1);
  border-radius: var(--fs-radius);
  background: #fff;
  box-shadow: 0 12px 34px rgba(18, 60, 43, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.fs-card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 122, 60, 0.3);
  box-shadow: var(--fs-shadow);
}

.fs-service-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 1.1rem;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #eaf5e8, #f7fbf5);
  color: var(--fs-green);
  font-size: 1.3rem;
  font-weight: 900;
}

.fs-service-number,
.fs-process-number {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1.15rem;
  place-items: center;
  border-radius: 14px;
  background: var(--fs-sand);
  color: var(--fs-green);
  font-weight: 900;
}

.fs-stat {
  min-height: 138px;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 60, 43, 0.08);
}

.fs-stat strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--fs-green);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1;
}

.fs-image-card {
  overflow: hidden;
  min-height: 520px;
  border-radius: 30px;
  box-shadow: var(--fs-shadow);
}

.fs-image-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.fs-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.fs-feature-list li {
  position: relative;
  margin: 0 0 0.95rem;
  padding-inline-start: 2rem;
}

.fs-feature-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 50%;
  background: #eaf5e8;
  color: var(--fs-green);
  font-size: 0.82rem;
  font-weight: 900;
}

.fs-portfolio-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 26px;
}

.fs-portfolio-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.fs-portfolio-card:hover img { transform: scale(1.035); }

.fs-portfolio-caption {
  position: absolute;
  inset-inline: 1rem;
  bottom: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: rgba(12, 44, 31, 0.76);
  color: #fff;
  backdrop-filter: blur(12px);
}

.fs-portfolio-caption h3,
.fs-portfolio-caption p { margin: 0; color: #fff; }

.fs-portfolio-caption p { margin-top: 0.25rem; opacity: 0.82; }

.fs-quote-shell {
  overflow: hidden;
  border-radius: 32px;
  background: var(--fs-forest);
  box-shadow: var(--fs-shadow);
}

.fs-quote-intro {
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #fff;
  background:
    linear-gradient(145deg, rgba(18, 60, 43, 0.98), rgba(23, 122, 60, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(92, 166, 58, 0.55), transparent 42%);
}

.fs-quote-form-wrap {
  padding: clamp(1.5rem, 4vw, 3.25rem);
  background: #fff;
}

.four-sides-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.four-sides-form .fs-field-full { grid-column: 1 / -1; }

.four-sides-form label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--fs-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.four-sides-form input,
.four-sides-form select {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #d9e1dc;
  border-radius: 12px;
  background: #fff;
  color: var(--fs-ink);
  font: inherit;
}

.four-sides-form input:focus,
.four-sides-form select:focus {
  outline: 3px solid rgba(23, 122, 60, 0.14);
  border-color: var(--fs-green);
}

.four-sides-form button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 12px;
  background: var(--fs-green);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.four-sides-form button:hover {
  transform: translateY(-2px);
  background: var(--fs-forest);
}

.fs-form-notice {
  grid-column: 1 / -1;
  margin: 0 0 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #eaf5e8;
  color: #175b2e;
  font-weight: 700;
}

.fs-form-notice.is-error {
  background: #fff0ee;
  color: #9b2c21;
}

.fs-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--fs-muted);
  font-size: 0.82rem;
}

.fs-consent input {
  width: 18px;
  min-height: 18px;
  margin-top: 0.25rem;
}

.fs-form-note {
  margin: 0;
  color: var(--fs-muted);
  font-size: 0.78rem;
}

.fs-faq-shell {
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.fs-faq-shell details {
  margin-bottom: 0.85rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(18, 60, 43, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(18, 60, 43, 0.05);
}

.fs-faq-shell summary {
  color: var(--fs-forest);
  font-weight: 900;
  cursor: pointer;
}

.fs-faq-shell details > p {
  margin-bottom: 0;
  color: var(--fs-muted);
}

.fs-whatsapp-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1rem;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(13, 95, 47, 0.3);
  transition: transform 160ms ease;
}

.fs-whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.fs-mobile-actions { display: none; }

.fs-whatsapp-float:hover { transform: translateY(-3px); }

.fs-site-footer {
  padding-top: 4rem;
}

.fs-footer-links a { color: rgba(255, 255, 255, 0.8); }
.fs-footer-links a:hover { color: #fff; }

.fs-mini-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

@media (max-width: 980px) {
  .fs-site-header .fs-header-cta { display: none; }
  .fs-navigation { justify-content: flex-end; }
  .fs-hero { min-height: 720px; }
  .fs-image-card,
  .fs-image-card img { min-height: 440px; }
}

@media (max-width: 782px) {
  .admin-bar .fs-site-header { top: 46px; }
  .fs-topbar { display: none; }
  .fs-brand-name small { display: none; }
  .fs-brand-mark { width: 62px; height: 62px; }
  .fs-brand-mark img { width: 62px !important; height: 62px !important; }
  .fs-hero { min-height: 670px; }
  .fs-hero::after { background: rgba(10, 40, 28, 0.68); }
  [dir="ltr"] .fs-hero::after,
  .fs-english-page .fs-hero::after,
  .fs-hero-en::after { background: rgba(10, 40, 28, 0.68); }
  .fs-section { padding-block: 4rem; }
  .four-sides-form { grid-template-columns: 1fr; }
  .four-sides-form > * { grid-column: 1 / -1; }
  .fs-image-card,
  .fs-image-card img { min-height: 360px; }
  .fs-portfolio-card,
  .fs-portfolio-card img { min-height: 350px; height: 350px; }
  body { padding-bottom: 68px; }
  .fs-whatsapp-float { display: none; }
  .fs-mobile-actions {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(18, 60, 43, 0.12);
    backdrop-filter: blur(12px);
  }
  .fs-mobile-actions a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 12px;
    background: var(--fs-forest);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
  }
  .fs-mobile-actions a:last-child { background: #1fa855; }
}

@media (max-width: 520px) {
  .fs-brand-name strong { font-size: 0.92rem; }
  .fs-brand-mark { width: 58px; height: 58px; border-radius: 12px; }
  .fs-brand-mark img { width: 58px !important; height: 58px !important; }
  .fs-hero { min-height: 690px; }
  .fs-mobile-actions { padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
