/* ============================================================
   GAARA EXPORT – Simple pages (About / Contact)
   Same design language as the Home / Products / Blog templates.
============================================================ */

:root {
    --g-dark: #1a3a27; --g-green: #3a6e3a; --g-mid: #4e8a4e;
    --g-cream: #f5f0e6; --g-cream2: #faf8f3; --g-border: #e8e2d8;
    --g-text: #2c2c2c; --g-muted: #6b6b6b; --g-white: #fff;
    --g-shadow: 0 4px 24px rgba(26,58,39,.08);
    --g-radius-lg: 16px; --g-transition: .25s ease;
    --sp-section: 80px;
}

.gaara-simple-page * { box-sizing: border-box; }
.gaara-simple-page {
    font-family: var(--gaara-font, "IBM Plex Sans Arabic", system-ui, -apple-system, sans-serif);
    color: var(--g-text);
    overflow-x: clip;   /* clip, not hidden — hidden breaks position:sticky */
    background: var(--g-white);
}
.gaara-sp-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ── HERO ─────────────────────────────────────────────────── */
.gaara-sp-hero {
    position: relative;
    padding: 185px 0 78px;          /* clears the fixed site header */
    color: #fff;
    background-color: var(--g-dark);
    background-image: url("https://gaaraexport.com/wp-content/uploads/2025/04/grape-farm.jpg");
    background-size: cover;
    background-position: center 38%;
    overflow: hidden;
}
.gaara-sp-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(12,28,19,.80) 0%, rgba(12,28,19,.62) 45%, rgba(26,58,39,.90) 100%);
}
.gaara-sp-hero-inner { position: relative; z-index: 1; }
.gaara-sp-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: .82rem; margin-bottom: 18px;
}
.gaara-sp-breadcrumb a { color: rgba(255,255,255,.62); text-decoration: none; }
.gaara-sp-breadcrumb a:hover { color: #fff; }
.gaara-sp-breadcrumb span { color: rgba(255,255,255,.4); }
.gaara-sp-breadcrumb [aria-current] { color: rgba(255,255,255,.9); font-weight: 600; }
.gaara-sp-hero-eyebrow {
    font-size: .85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: rgba(255,255,255,.75); margin: 0 0 10px;
}
.gaara-sp-hero-title {
    font-size: clamp(2.1rem, 4vw, 3rem); font-weight: 800; color: #fff;
    margin: 0 0 14px; letter-spacing: -.02em; line-height: 1.12;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.gaara-sp-hero-lead {
    font-size: 1.05rem; color: rgba(255,255,255,.85);
    max-width: 640px; line-height: 1.7; margin: 0;
}

/* Centred hero. The breadcrumb moved below the lead in the markup, so it
   needs its own top spacing instead of the bottom margin it had on top. */
.gaara-sp-hero-center .gaara-sp-hero-inner {
    text-align: center;
    max-width: 860px;
    margin-inline: auto;
}
.gaara-sp-hero-center .gaara-sp-hero-lead {
    max-width: 720px;
    margin-inline: auto;
}
.gaara-sp-hero-center .gaara-sp-breadcrumb {
    justify-content: center;
    margin: 26px 0 0;
    font-size: .8rem;
}

/* ── SECTIONS ─────────────────────────────────────────────── */
.gaara-sp-section { padding: var(--sp-section) 0; }
.gaara-sp-white { background: var(--g-white); }
/* Tinted blocks — flat fill, no gradient.
   A 4-stop white→tint→white gradient was tried and removed: the colours
   are only a few RGB steps apart, so the browser dithered the fade into
   visible horizontal bands and the point where it stopped read as a harder
   edge than the plain seam. Do NOT reintroduce a gradient here. */
.gaara-sp-tint { background: #f1f5f2; }

.gaara-sp-eyebrow {
    font-size: .85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--g-green); margin: 0 0 10px;
}
.gaara-sp-title {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800;
    color: var(--g-dark); margin: 0 0 18px; letter-spacing: -.02em; line-height: 1.22;
}
.gaara-sp-text { color: var(--g-muted); font-size: 1rem; line-height: 1.8; margin: 0 0 26px; }
.gaara-sp-head-center { text-align: center; max-width: 720px; margin: 0 auto 44px; }

.gaara-sp-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 5.5%; align-items: center;
}
.gaara-simple-page .gaara-sp-img img {
    width: 100%; height: auto; display: block; border-radius: 16px;
}

.gaara-simple-page .gaara-sp-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 30px; border-radius: 30px;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    transition: all var(--g-transition);
}
.gaara-simple-page .gaara-sp-btn-solid {
    background: var(--g-dark); color: #fff; border: 1.5px solid var(--g-dark);
}
.gaara-simple-page .gaara-sp-btn-solid:hover {
    background: var(--g-green); border-color: var(--g-green); color: #fff; text-decoration: none;
}

/* Certification logos — plain row, no cards (see the homepage note). */
.gaara-sp-certs {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: clamp(40px, 8vw, 110px);
}

/* Five accreditations with their descriptions (About page).
   No card frames — the logos are JPEG/PNG on white, so a bordered box
   just draws an empty rectangle around each one. */
.gaara-sp-cert-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 48px 36px;
}
.gaara-sp-cert { text-align: center; }
.gaara-sp-cert-logo {
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.gaara-simple-page .gaara-sp-cert-logo img {
    height: 96px !important;
    width: auto !important;
    max-width: 170px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.gaara-sp-cert-name {
    font-size: 1.02rem; font-weight: 700; color: var(--g-dark);
    margin: 0 0 8px; line-height: 1.3;
}
.gaara-sp-cert-desc {
    font-size: .9rem; color: var(--g-muted);
    line-height: 1.65; margin: 0;
}
.gaara-simple-page .gaara-sp-certs img {
    height: 110px !important; width: auto !important; max-width: 220px;
    object-fit: contain; mix-blend-mode: multiply;
    transition: transform var(--g-transition);
}
.gaara-sp-certs img:hover { transform: scale(1.05); }

/* Produce list */
.gaara-sp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gaara-sp-list a {
    display: block; padding: 14px 16px; border-radius: 10px;
    text-decoration: none; transition: background var(--g-transition);
}
.gaara-sp-list a:hover { background: rgba(255,255,255,.7); text-decoration: none; }
.gaara-sp-list strong { display: block; color: var(--g-dark); font-size: 1.02rem; margin-bottom: 3px; }
.gaara-sp-list span { color: var(--g-muted); font-size: .9rem; line-height: 1.6; }

/* Feature cards */
.gaara-sp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gaara-sp-card {
    background: var(--g-cream2); border-radius: var(--g-radius-lg); padding: 30px 28px;
}
.gaara-sp-card img { margin: 0 0 16px; }
.gaara-sp-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--g-dark); margin: 0 0 10px; }
.gaara-sp-card p { font-size: .9rem; color: var(--g-muted); line-height: 1.7; margin: 0; }

/* ── CONTACT: form + details ──────────────────────────────── */
.gaara-sp-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.gaara-sp-contact-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.gaara-sp-contact-list li { display: flex; gap: 14px; }
.gaara-sp-contact-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--g-green); margin-top: 3px; }
.gaara-sp-contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g-muted); margin-bottom: 4px; }
.gaara-sp-contact-list p { margin: 0; font-size: .96rem; color: var(--g-dark); line-height: 1.6; }
.gaara-sp-contact-list a { color: var(--g-dark); text-decoration: none; }
.gaara-sp-contact-list a:hover { color: var(--g-green); }

/* WhatsApp link — sits inside the Phone / WhatsApp list entry, directly
   under the number, so it reads as "and here's the WhatsApp for it"
   rather than a separate call to action.
   No pill, no border, no fill: a bordered button nested inside a contact
   row competes with the row itself. Plain green text + glyph, underlined
   on hover, like the other contact links.
   Also deliberately NOT WhatsApp brand green (#25d366) — a saturated lime
   doesn't belong to this palette. */
.gaara-simple-page .gaara-sp-wa {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--g-green) !important;
    font-size: .9rem; font-weight: 700; text-decoration: none;
    transition: color var(--g-transition);
}
.gaara-simple-page .gaara-sp-wa:hover {
    color: var(--g-dark) !important;
    text-decoration: underline;
}
.gaara-sp-wa svg { width: 17px; height: 17px; flex-shrink: 0; }

.gaara-sp-form-card {
    background: var(--g-white); border-radius: var(--g-radius-lg);
    padding: 36px 32px; box-shadow: var(--g-shadow);
}
.gaara-sp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gaara-sp-group { margin-bottom: 16px; }
.gaara-sp-group label { display: block; font-size: .85rem; font-weight: 600; color: var(--g-dark); margin-bottom: 6px; }
.gaara-sp-group label span { color: #c0392b; }
.gaara-sp-group input,
.gaara-sp-group textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--g-border); border-radius: 10px;
    background: #fff; font-family: inherit; font-size: .93rem; color: var(--g-text);
}
.gaara-sp-group input:focus,
.gaara-sp-group textarea:focus { outline: 2px solid var(--g-green); outline-offset: 1px; border-color: transparent; }
.gaara-simple-page .gaara-sp-submit {
    width: 100%; padding: 14px 20px; border: 0; border-radius: 50px;
    background: var(--g-dark); color: #fff; font-family: inherit;
    font-size: .95rem; font-weight: 700; cursor: pointer;
    transition: background var(--g-transition);
}
.gaara-simple-page .gaara-sp-submit:hover:not(:disabled) { background: var(--g-green); }
.gaara-simple-page .gaara-sp-submit:disabled { opacity: .7; cursor: default; }
.gaara-sp-notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .9rem; }
.gaara-sp-notice.is-ok  { background: #e8efe9; color: var(--g-dark); }
.gaara-sp-notice.is-err { background: #fbeaea; color: #a03028; }

/* ── CTA ──────────────────────────────────────────────────── */
.gaara-sp-cta-section { padding: var(--sp-section) 0; background: var(--g-white); }
.gaara-sp-cta {
    display: flex; align-items: center; gap: 48px;
    background: #e8efe9; border-radius: 16px; padding: 56px;
}
.gaara-sp-cta-left { flex: 1 1 auto; }
.gaara-sp-cta-heading {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800;
    color: var(--g-dark); margin: 0 0 12px; line-height: 1.25; letter-spacing: -.02em;
}
.gaara-sp-cta-details { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.gaara-sp-cta-details li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--g-text); }
.gaara-sp-cta-details svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--g-green); }
.gaara-sp-cta-details a { color: inherit; text-decoration: none; }
.gaara-sp-cta-details a:hover { color: var(--g-green); }
.gaara-sp-cta-right { flex: 0 0 250px; display: flex; flex-direction: column; gap: 14px; }
.gaara-simple-page .gaara-sp-cta-btn {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 22px; border-radius: 50px;
    font-size: .94rem; font-weight: 700; text-decoration: none; white-space: nowrap;
    transition: all var(--g-transition);
}
/* Same reasoning as .gaara-sp-wa above — solid brand green, not
   WhatsApp lime, so the CTA pair reads as one set of buttons. */
.gaara-simple-page .gaara-sp-wa-btn { background: var(--g-green); color: #fff; }
.gaara-simple-page .gaara-sp-wa-btn:hover { background: var(--g-dark); color: #fff; text-decoration: none; }
.gaara-simple-page .gaara-sp-mail-btn { background: transparent; color: var(--g-dark); border: 2px solid var(--g-dark); }
.gaara-simple-page .gaara-sp-mail-btn:hover { background: var(--g-dark); color: #fff; text-decoration: none; }

/* ── RTL ──────────────────────────────────────────────────────
   direction:rtl alone mirrors flex/grid — never add row-reverse on
   top of it (see the FAQ note in post.css). */
.gaara-simple-page.gaara-rtl { direction: rtl; }
.gaara-simple-page.gaara-rtl .gaara-sp-hero-title,
.gaara-simple-page.gaara-rtl .gaara-sp-hero-lead,
.gaara-simple-page.gaara-rtl .gaara-sp-text { text-align: right; }
.gaara-simple-page.gaara-rtl .gaara-sp-head-center,
.gaara-simple-page.gaara-rtl .gaara-sp-hero-center .gaara-sp-hero-inner,
.gaara-simple-page.gaara-rtl .gaara-sp-hero-center .gaara-sp-hero-title,
.gaara-simple-page.gaara-rtl .gaara-sp-hero-center .gaara-sp-hero-lead,
.gaara-simple-page.gaara-rtl .gaara-sp-cert { text-align: center; }
.gaara-simple-page.gaara-rtl a[href^="tel:"],
.gaara-simple-page.gaara-rtl a[href^="mailto:"] { unicode-bidi: isolate; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .gaara-sp-hero { padding: 165px 0 60px; }
    .gaara-sp-split { grid-template-columns: 1fr; gap: 34px; }
    .gaara-sp-img-first { order: -1; }
    .gaara-sp-contact-grid { grid-template-columns: 1fr; gap: 34px; }
    .gaara-sp-cards { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    :root { --sp-section: 56px; }
    .gaara-sp-container { padding: 0 20px; }
    .gaara-sp-hero { padding: 130px 0 46px; }
    .gaara-sp-form-card { padding: 26px 20px; }
    .gaara-sp-row { grid-template-columns: 1fr; gap: 0; }
    .gaara-simple-page .gaara-sp-certs img { height: 74px !important; max-width: 150px; }
    .gaara-sp-certs { gap: 32px; }
    .gaara-sp-cert-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 34px 24px; }
    .gaara-sp-cert-logo { height: 70px; margin-bottom: 12px; }
    .gaara-simple-page .gaara-sp-cert-logo img { height: 70px !important; max-width: 130px; }
    .gaara-sp-cert-name { font-size: .94rem; }
    .gaara-sp-cert-desc { font-size: .84rem; }
    .gaara-sp-cta { flex-direction: column; align-items: stretch; gap: 26px; padding: 32px 24px; }
    .gaara-sp-cta-right { flex: none; flex-direction: row; }
    .gaara-simple-page .gaara-sp-cta-btn { flex: 1; }
}
@media (max-width: 480px) {
    .gaara-sp-hero { padding: 112px 0 38px; }
    .gaara-sp-cta-right { flex-direction: column; }
}

/* ── OUR PRODUCE (component shared with the homepage) ─────────
   The markup and behaviour are the homepage's, so home.css does the
   layout. Only the section background differs: flat, never a gradient
   (see the .gaara-sp-tint note above for why). */
.gaara-simple-page .gaara-home-produce { background: #f1f5f2; }

/* ── WHY CHOOSE US (component shared with the homepage) ───────
   Same rule as the produce band: flat background, never a gradient. */
.gaara-simple-page .gaara-home-why { background: #f1f5f2; }

/* ============================================================
   LEGAL PAGES (Terms & Conditions / Privacy Policy)
   Plain Gutenberg content — the template only supplies the
   reading column and typography.
============================================================ */
.gaara-legal-container {
    /* Narrower than the other pages: legal prose is read line by line,
       and ~70 characters per line is where that stays comfortable. */
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}
.gaara-legal-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--g-text);
}
.gaara-legal-body > *:first-child { margin-top: 0; }
.gaara-legal-body > *:last-child  { margin-bottom: 0; }

.gaara-legal-body h2,
.gaara-legal-body h3 {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--g-dark);
    line-height: 1.35;
    letter-spacing: -.01em;
    margin: 44px 0 14px;
    padding-top: 22px;
    border-top: 1px solid var(--g-border);
}
.gaara-legal-body h2:first-child,
.gaara-legal-body h3:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.gaara-legal-body h4 {
    font-size: 1.06rem; font-weight: 700; color: var(--g-dark);
    margin: 26px 0 8px;
}
.gaara-legal-body p { margin: 0 0 18px; }
.gaara-legal-body strong { color: var(--g-dark); font-weight: 700; }
.gaara-legal-body a { color: var(--g-green); text-decoration: underline; }
.gaara-legal-body a:hover { color: var(--g-dark); }

.gaara-legal-body ul,
.gaara-legal-body ol { margin: 0 0 20px; padding-inline-start: 22px; }
.gaara-legal-body li { margin-bottom: 9px; }

.gaara-legal-body table {
    width: 100%; border-collapse: collapse; margin: 0 0 22px;
    font-size: .93rem;
}
.gaara-legal-body th,
.gaara-legal-body td {
    border: 1px solid var(--g-border); padding: 10px 12px; text-align: start;
}
.gaara-legal-body th { background: #f1f5f2; color: var(--g-dark); font-weight: 700; }

/* The legal hero is shorter — there is no marketing copy to carry. */
.gaara-legal-hero { padding: 165px 0 62px; }

@media (max-width: 767px) {
    .gaara-legal-container { padding: 0 20px; }
    .gaara-legal-body { font-size: .95rem; line-height: 1.8; }
    .gaara-legal-body h2,
    .gaara-legal-body h3 { font-size: 1.16rem; margin: 34px 0 12px; padding-top: 18px; }
    .gaara-legal-hero { padding: 128px 0 46px; }
}

/* ── FALLBACK TEMPLATES (404 actions, pagination) ─────────────
   Used by 404.php and the archive/search/index listings. */
.gaara-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.gaara-simple-page .gaara-sp-btn-ghost {
    background: transparent;
    color: var(--g-dark);
    border: 2px solid var(--g-dark);
}
.gaara-simple-page .gaara-sp-btn-ghost:hover {
    background: var(--g-dark);
    color: #fff;
    text-decoration: none;
}

.gaara-pagination { margin-top: 44px; }
.gaara-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.gaara-pagination a,
.gaara-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--g-border);
    color: var(--g-dark);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--g-transition), color var(--g-transition);
}
.gaara-pagination a:hover { background: var(--g-cream2); text-decoration: none; }
.gaara-pagination .current {
    background: var(--g-dark);
    border-color: var(--g-dark);
    color: #fff;
}
