/* =========================================================================
   THIMAR AL QARYA FRUITS — Main Stylesheet
   A premium, editorial, produce-import aesthetic.
   ========================================================================= */

/* ---------- Design Tokens ---------- */
:root {
	--color-primary: #155C3A;
	--color-primary-light: #2F8F5B;
	--color-gold: #C9A24B;
	--color-cream: #FAF8F3;
	--color-ink: #1A2420;
	--color-ink-soft: #4B5A54;
	--color-white: #FFFFFF;
	--color-border: #E7E2D6;

	--font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 28px;

	--shadow-sm: 0 2px 10px rgba(20, 40, 30, 0.06);
	--shadow-md: 0 12px 32px rgba(20, 40, 30, 0.10);
	--shadow-lg: 0 24px 60px rgba(20, 40, 30, 0.16);

	--container-width: 1220px;
	--header-height: 84px;

	--transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--color-ink);
	background: var(--color-white);
	line-height: 1.65;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; margin: 0 0 0.6em; color: var(--color-ink); }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--color-ink-soft); }
button { font-family: inherit; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--color-gold);
	outline-offset: 2px;
}

.skip-link {
	position: absolute; left: -9999px; top: auto;
	background: var(--color-primary); color: #fff; padding: 12px 20px; z-index: 10000;
}
.skip-link:focus { left: 16px; top: 16px; }
.screen-reader-text { }

/* ---------- Layout Helpers ---------- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 6rem 0; position: relative; }
.bg-cream { background: var(--color-cream); }
.bg-primary { background: var(--color-primary); }
.bg-primary p, .bg-primary li { color: rgba(255,255,255,0.85); }
.bg-primary h2 { color: #fff; }

.eyebrow {
	display: inline-block;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--color-gold);
	margin-bottom: 0.8rem;
}
.eyebrow-light { color: #E9D9AE; }
.section-heading { max-width: 640px; margin-bottom: 3rem; }
.section-heading.center { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: 1.75rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split-media { position: relative; }
.badge-since {
	position: absolute; bottom: -18px; left: -18px;
	background: var(--color-gold); color: #2A2205;
	font-family: var(--font-heading); font-weight: 600;
	padding: 0.6rem 1.2rem; border-radius: 50px; box-shadow: var(--shadow-sm);
	font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.9rem 1.8rem;
	border-radius: 50px;
	font-weight: 600;
	font-size: 0.95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
	white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-light); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-primary); }
.btn-whatsapp { background: #1FA855; color: #fff; }
.btn-whatsapp:hover { background: #17913f; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.icon-whatsapp { flex-shrink: 0; }

.link-cta { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--color-primary); border-bottom: 2px solid transparent; transition: border-color var(--transition); }
.link-cta:hover { border-color: var(--color-primary); }
.link-cta span { transition: transform var(--transition); }
.link-cta:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 999;
	background: rgba(255,255,255,0.92);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--transition), border-color var(--transition), padding var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
.header-inner {
	display: flex; align-items: center; justify-content: space-between;
	min-height: var(--header-height);
	gap: 2rem;
}
.site-logo { display: flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.site-logo img { border-radius: 50%; }
.site-logo-text {
	font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-primary);
	line-height: 1.15; max-width: 160px;
}

.primary-navigation { flex-grow: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 2.2rem; align-items: center; }
.nav-menu a {
	font-weight: 600; font-size: 0.95rem; color: var(--color-ink);
	position: relative; padding: 0.4rem 0;
}
.nav-menu a::after {
	content: ''; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
	background: var(--color-gold); transition: right var(--transition);
}
.nav-menu a:hover::after,
.nav-menu li.current-menu-item a::after,
.nav-menu li.current_page_item a::after { right: 0; }
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a { color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.header-whatsapp span { display: inline; }

/* Mobile hamburger */
.mobile-menu-toggle {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 44px; height: 44px; background: none; border: none; cursor: pointer;
	border-radius: 8px;
}
.hamburger-line { width: 24px; height: 2px; background: var(--color-ink); transition: transform var(--transition), opacity var(--transition); margin: 0 auto; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-navigation {
	position: fixed; inset: var(--header-height) 0 0 0;
	background: var(--color-white);
	transform: translateX(100%);
	transition: transform var(--transition);
	z-index: 998;
	padding: 2rem 1.5rem;
	overflow-y: auto;
	display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-navigation.is-open { transform: translateX(0); }
.mobile-nav-menu { display: flex; flex-direction: column; gap: 0.3rem; }
.mobile-nav-menu a { display: block; padding: 1rem 0.5rem; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--color-border); }
.mobile-nav-footer { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.mobile-instagram-link { text-align: center; font-weight: 600; color: var(--color-primary); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 88vh;
	display: flex; align-items: center;
	background-size: cover; background-position: center;
	color: #fff;
}
.hero-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,40,26,0.55) 0%, rgba(15,40,26,0.72) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero-heading { color: #fff; margin-bottom: 0.5em; }
.hero-subheading { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-cue {
	position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
	width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.7); border-radius: 20px; z-index: 2;
}
.hero-scroll-cue::before {
	content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
	width: 4px; height: 8px; background: #fff; border-radius: 2px;
	animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 20px; } }

/* Page hero (sub-pages) */
.page-hero {
	position: relative; min-height: 46vh; display: flex; align-items: center;
	background-size: cover; background-position: center; color: #fff;
}
.page-hero-sm { min-height: 34vh; }
.page-hero-content { position: relative; z-index: 2; max-width: 700px; }
.page-hero-content h1 { color: #fff; }
.page-hero-subtitle { color: rgba(255,255,255,0.9); font-size: 1.1rem; max-width: 540px; }

/* ---------- Cards ---------- */
.card {
	background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
	transition: transform var(--transition), box-shadow var(--transition);
	overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.feature-card { padding: 2.2rem 1.8rem; text-align: left; border: 1px solid var(--color-border); }
.feature-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(21,92,58,0.08); color: var(--color-primary);
	margin-bottom: 1.2rem;
}
.feature-icon-sm { width: 46px; height: 46px; }
.feature-icon-sm svg { width: 22px; height: 22px; }

.why-item { text-align: center; padding: 1.5rem 1rem; }
.why-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; margin-top: 0.8rem; }

.category-card-media { aspect-ratio: 4/3; overflow: hidden; }
.category-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .category-card-media img { transform: scale(1.06); }
.category-card-body { padding: 1.6rem 1.6rem 1.8rem; }
.category-desc { font-size: 0.95rem; }
.category-products { font-size: 0.88rem; color: var(--color-ink-soft); font-style: italic; margin-bottom: 1rem; }
.category-enquire { font-size: 0.9rem; }

/* ---------- Sourcing / Regions ---------- */
.region-list { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.region-list li {
	background: var(--color-cream); border: 1px solid var(--color-border);
	padding: 0.6rem 1.2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem;
	color: var(--color-primary);
}

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 1.4rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: rgba(255,255,255,0.9); font-weight: 500; }
.check-list li::before {
	content: ''; position: absolute; left: 0; top: 0.35rem; width: 10px; height: 10px;
	background: var(--color-gold); border-radius: 50%;
}

/* ---------- Quote ---------- */
.quote-block { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-block p {
	font-family: var(--font-heading); font-size: clamp(1.4rem, 2.6vw, 2rem);
	color: var(--color-primary); font-style: italic; line-height: 1.5;
}
.brand-statement {
	text-align: center; font-family: var(--font-heading); font-weight: 600;
	font-size: 1.3rem; color: var(--color-gold); margin-top: 2rem;
}

/* ---------- Final CTA ---------- */
.section-final-cta {
	background-size: cover; background-position: center;
	color: #fff; text-align: center; padding: 7rem 0;
}
.final-cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.final-cta-content h2 { color: #fff; }
.final-cta-content p { color: rgba(255,255,255,0.9); font-size: 1.1rem; margin-bottom: 2rem; }
.final-cta-content .hero-actions { justify-content: center; }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3.5rem; }
.contact-details-list { margin: 1.5rem 0 2rem; }
.contact-details-list li { display: flex; flex-direction: column; padding: 0.9rem 0; border-bottom: 1px solid var(--color-border); }
.contact-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-gold); font-weight: 600; margin-bottom: 0.2rem; }
.contact-details-list a:hover { color: var(--color-primary); }

.contact-form-wrap { background: var(--color-cream); border-radius: var(--radius-lg); padding: 2.5rem; }
.form-row { margin-bottom: 1.3rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.92rem; }
.form-row input, .form-row textarea {
	width: 100%; padding: 0.85rem 1rem; border-radius: var(--radius-sm);
	border: 1px solid var(--color-border); font-family: inherit; font-size: 0.95rem;
	background: #fff; transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input:focus, .form-row textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(21,92,58,0.12); outline: none; }
.form-row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.req { color: #C0392B; }
.honeypot-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 500; }
.form-notice-success { background: #E3F5EA; color: #155C3A; border: 1px solid #B7E4C7; }
.form-notice-error { background: #FDECEA; color: #A1352A; border: 1px solid #F5C6C2; }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); line-height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.8); padding-top: 4.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-logo img { border-radius: 50%; margin-bottom: 1rem; }
.footer-tagline { color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-icon {
	width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(255,255,255,0.08); transition: background var(--transition);
}
.social-icon:hover { background: var(--color-gold); color: var(--color-ink); }
.footer-heading { color: #fff; font-family: var(--font-body); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.2rem; }
.footer-nav-menu, .footer-contact-list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav-menu a:hover, .footer-contact-list a:hover { color: var(--color-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* ---------- Floating WhatsApp Button ---------- */
.floating-whatsapp {
	position: fixed; bottom: 24px; right: 24px; z-index: 900;
	width: 58px; height: 58px; border-radius: 50%;
	background: #1FA855; color: #fff;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 26px rgba(31,168,85,0.4);
	transition: transform var(--transition);
}
.floating-whatsapp svg { width: 28px; height: 28px; }
.floating-whatsapp:hover { transform: scale(1.08); }

/* ---------- Reveal / Fade animations ---------- */
.reveal, .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible, .fade-up.is-visible { opacity: 1; transform: translateY(0); }
.fade-up { opacity: 1; transform: none; animation: heroFadeUp 0.9s ease both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.split-layout { gap: 2.5rem; }
}

@media (max-width: 900px) {
	.primary-navigation { display: none; }
	.header-whatsapp span { display: none; }
	.header-whatsapp { padding: 0.7rem; border-radius: 50%; }
	.mobile-menu-toggle { display: flex; }
	.contact-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.check-list { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
	.split-layout, .split-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
	.split-layout.reverse .split-media { order: -1; }
	.grid-4, .grid-3 { grid-template-columns: 1fr 1fr; }
	.section { padding: 4rem 0; }
	.badge-since { left: 12px; bottom: -14px; }
}

@media (max-width: 560px) {
	.grid-4, .grid-3 { grid-template-columns: 1fr; }
	.form-row-group { grid-template-columns: 1fr; }
	.hero { min-height: 92vh; }
	.hero-actions, .final-cta-content .hero-actions { flex-direction: column; align-items: stretch; }
	.hero-actions .btn, .final-cta-content .btn { width: 100%; }
	.floating-whatsapp { width: 52px; height: 52px; bottom: 18px; right: 18px; }
	:root { --header-height: 72px; }
	.contact-form-wrap { padding: 1.8rem 1.4rem; }
}

/* Dark-on-dark section text overrides */
.light-on-dark h2, .light-on-dark p { color-scheme: dark; }
