/*
Theme Name: Safaroc Travel
Theme URI: https://safaroc.com/
Author: Rukn Al Web
Description: Custom responsive travel theme for Safaroc by Amigos Viajes.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: safaroc-travel
*/

:root {
	--navy: #063b63;
	--navy-dark: #032d4e;
	--teal: #0796a2;
	--teal-dark: #087681;
	--orange: #ff7a1a;
	--yellow: #ffc928;
	--ink: #11334d;
	--muted: #6f8292;
	--surface: #f4f9fc;
	--white: #fff;
	--radius: 18px;
	--shadow: 0 16px 40px rgba(5, 54, 88, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "Tajawal", Arial, sans-serif; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.topbar { background: var(--navy-dark); color: rgba(255,255,255,.92); font-size: 13px; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-meta, .topbar-social { display: flex; align-items: center; gap: 18px; }
.topbar-meta span, .topbar-meta a { display: inline-flex; align-items: center; gap: 7px; }
.topbar-meta i { width: 14px; color: var(--yellow); text-align: center; }
.topbar a:hover { color: var(--yellow); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); box-shadow: 0 6px 24px rgba(7,48,78,.08); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; min-width: 210px; }
.brand img, .safaroc-site-logo { width: auto; max-width: 210px; max-height: 64px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--teal); font-size: 29px; font-weight: 800; letter-spacing: .05em; }
.brand-tagline { margin-top: 7px; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 17px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { position: relative; padding: 30px 0 25px; color: var(--navy); font-size: 14px; font-weight: 700; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 3px; border-radius: 4px; background: var(--orange); transition: .25s; }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { right: 0; }
.header-cta, .button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; color: var(--navy-dark); background: var(--yellow); font-weight: 800; box-shadow: 0 9px 20px rgba(255, 201, 40, .28); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.header-cta:hover, .button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 201, 40, .35); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--teal); font-size: 20px; }

.hero { position: relative; min-height: 610px; padding: 85px 0 150px; color: #fff; background-image: linear-gradient(90deg, rgba(2,52,86,.87) 0%, rgba(3,83,121,.56) 46%, rgba(0,79,115,.12) 100%), url('https://images.unsplash.com/photo-1539020140153-e479b8c22e70?auto=format&fit=crop&w=2000&q=86'); background-size: cover; background-position: center; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -48px; height: 100px; border-radius: 50% 50% 0 0; background: #fff; }
.hero-content { position: relative; z-index: 2; max-width: 690px; }
.eyebrow { margin: 0 0 9px; color: var(--yellow); font-size: 14px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 em { display: block; color: var(--yellow); font-style: normal; font-weight: 500; }
.hero-copy { max-width: 620px; margin: 22px 0 28px; font-size: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button-ghost { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 0 23px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; color: #fff; font-weight: 700; backdrop-filter: blur(8px); }

.search-panel { position: relative; z-index: 5; margin-top: -92px; }
.search-form { display: grid; grid-template-columns: 1.35fr 1fr 1fr .8fr auto; gap: 0; padding: 13px; border-radius: 22px; background: rgba(255,255,255,.97); box-shadow: 0 22px 55px rgba(1,43,73,.25); }
.search-field { min-height: 72px; padding: 7px 18px; border-right: 1px solid #dde8ee; }
.search-field label { display: flex; align-items: center; gap: 7px; color: var(--navy); font-size: 12px; font-weight: 800; }
.search-field label i { width: 15px; color: var(--teal); text-align: center; }
.search-field input, .search-field select { width: 100%; padding: 7px 0 0; border: 0; outline: 0; color: #728390; background: transparent; font-size: 14px; }
.search-submit { align-self: center; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 58px; padding: 0 29px; border: 0; border-radius: 16px; color: var(--navy-dark); background: var(--yellow); font-weight: 800; cursor: pointer; }

.service-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; margin: 36px auto 74px; }
.service-item { padding: 8px 12px 16px; text-align: center; border-right: 1px solid #e4edf2; }
.service-item:last-child { border-right: 0; }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 10px; border: 1px solid rgba(7,150,162,.12); border-radius: 50%; color: var(--navy); background: #d8f0f5; box-shadow: 0 7px 18px rgba(6,59,99,.09); font-size: 23px; transition: .2s; }
.service-item:nth-child(2n) .service-icon { background: #fff0d9; }
.service-item:hover .service-icon { color: var(--teal-dark); transform: translateY(-4px); box-shadow: 0 11px 24px rgba(6,59,99,.15); }
.service-item strong { display: block; color: var(--navy); font-size: 13px; line-height: 1.25; }
.service-item small { color: var(--muted); font-size: 11px; }

.section { padding: 76px 0; }
.section-soft { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-title { margin: 0; color: var(--navy); font-size: clamp(30px, 4vw, 43px); line-height: 1.15; }
.section-title::before { content: ""; display: inline-block; width: 38px; height: 5px; margin: 0 14px 8px 0; border-radius: 5px; background: var(--yellow); }
.section-subtitle { margin: 7px 0 0; color: var(--muted); }
.section-link { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-dark); font-weight: 800; white-space: nowrap; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-grid.six { grid-template-columns: repeat(6, 1fr); gap: 16px; }
.travel-card { position: relative; overflow: hidden; border: 1px solid #e4edf2; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(6,59,99,.08); transition: transform .25s, box-shadow .25s; }
.travel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, #0aa4ad, #075279); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.travel-card:hover .card-media img { transform: scale(1.06); }
.card-fallback { width: 100%; height: 100%; background: radial-gradient(circle at 78% 22%, rgba(255,201,40,.8), transparent 18%), linear-gradient(135deg, #0aa2aa, #063b63); }
.card-badge { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 20px; color: var(--navy-dark); background: var(--yellow); font-size: 11px; font-weight: 800; }
.card-body { padding: 18px; }
.card-location { display: flex; align-items: center; gap: 6px; color: var(--teal-dark); font-size: 12px; font-weight: 700; }
.card-title { margin: 3px 0 5px; color: var(--navy); font-size: 21px; line-height: 1.25; }
.card-excerpt { margin: 0 0 15px; color: var(--muted); font-size: 14px; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--ink); font-size: 12px; font-weight: 700; }
.card-link { display: inline-flex; align-items: center; gap: 7px; color: var(--teal-dark); font-size: 13px; font-weight: 800; }
.card-link i, .section-link i { font-size: .82em; transition: transform .2s; }
.card-link:hover i, .section-link:hover i { transform: translateX(3px); }
.cards-grid.six .card-body { padding: 14px; }
.cards-grid.six .card-title { font-size: 16px; }
.cards-grid.six .card-excerpt { font-size: 12px; min-height: 38px; }

.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 28px; }
.feature-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card { position: relative; min-height: 205px; display: flex; align-items: end; overflow: hidden; padding: 28px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #098d99, #063b63); box-shadow: var(--shadow); }
.feature-card.large { min-height: 430px; background-image: linear-gradient(0deg, rgba(2,42,72,.9), rgba(4,64,96,.08)), url('https://images.unsplash.com/photo-1539020140153-e479b8c22e70?auto=format&fit=crop&w=1200&q=84'); background-size: cover; background-position: center; }
.feature-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,35,62,.85), transparent 75%); }
.feature-card-content { position: relative; z-index: 1; }
.feature-card h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 4px; font-size: 25px; line-height: 1.15; }
.feature-card h3 i { color: var(--yellow); font-size: .82em; }
.feature-card p { margin: 0 0 15px; color: rgba(255,255,255,.82); }
.feature-card a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; font-size: 12px; font-weight: 800; }
.feature-card.orange { background: linear-gradient(135deg, #ff8a22, #b94612); }
.feature-card.blue { background: linear-gradient(135deg, #0d89b5, #06426b); }
.feature-card.green { background: linear-gradient(135deg, #22a687, #075864); }
.feature-card.purple { background: linear-gradient(135deg, #7657c8, #164f79); }

.trust-strip { background: #fff; border-top: 1px solid #e7eef3; border-bottom: 1px solid #e7eef3; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 26px 18px; border-right: 1px solid #e7eef3; }
.trust-item:last-child { border-right: 0; }
.trust-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; color: var(--teal-dark); background: #e8f7f8; font-size: 21px; }
.trust-item:nth-child(2n) .trust-icon { color: #d96810; background: #fff1e5; }
.trust-item strong { display: block; color: var(--navy); }
.trust-item small { color: var(--muted); }

.archive-hero { padding: 82px 0; color: #fff; background: linear-gradient(135deg, var(--navy-dark), var(--teal)); }
.archive-hero h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); }
.archive-hero p { max-width: 670px; margin: 10px 0 0; color: rgba(255,255,255,.78); }
.archive-hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.content-wrap { padding: 70px 0; }
.single-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(310px, .8fr); gap: 40px; align-items: start; }
.single-media { overflow: hidden; margin-bottom: 30px; border-radius: 22px; box-shadow: var(--shadow); }
.single-media img { display: block; width: 100%; }
.single-content { font-size: 17px; }
.single-content h2, .single-content h3 { color: var(--navy); }
.offer-box { position: sticky; top: 115px; padding: 26px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.offer-box h3 { margin-top: 0; color: var(--navy); }
.offer-details { padding: 0; list-style: none; }
.offer-details li { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #dfe9ef; }
.offer-details li span { display: inline-flex; align-items: center; gap: 7px; }
.offer-details li span i { width: 15px; color: var(--teal); text-align: center; }

.safaroc-booking-form { padding: 30px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.safaroc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.safaroc-form-grid p { margin: 0; }
.safaroc-form-wide { grid-column: 1 / -1; }
.safaroc-booking-form label { display: block; margin-bottom: 5px; color: var(--navy); font-size: 13px; font-weight: 800; }
.safaroc-booking-form input, .safaroc-booking-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d6e3ea; border-radius: 10px; outline: 0; }
.safaroc-booking-form input:focus, .safaroc-booking-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(7,150,162,.1); }
.safaroc-form-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.safaroc-form-actions button, .safaroc-whatsapp-button { min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 22px; border: 0; border-radius: 999px; color: #fff; background: var(--teal); font-weight: 800; cursor: pointer; }
.safaroc-whatsapp-button { background: #25d366; }
.safaroc-form-success { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 18px; padding: 15px 18px; border-radius: 12px; color: #155b35; background: #ddf7e8; }
.safaroc-hp { position: absolute !important; left: -9999px !important; }

.site-footer { position: relative; padding: 65px 0 25px; color: rgba(255,255,255,.82); background: var(--navy-dark); overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 430px; height: 430px; right: -120px; bottom: -260px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.025), 0 0 0 90px rgba(255,255,255,.02); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 42px; }
.footer-title { margin: 0 0 17px; color: #fff; font-size: 17px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { max-width: 300px; }
.footer-list { margin: 0; padding: 0; list-style: none; }
.footer-list li { margin-bottom: 9px; }
.footer-list a:hover { color: var(--yellow); }
.footer-contact-list li, .footer-contact-list a { display: flex; align-items: center; gap: 9px; }
.footer-contact-list i { width: 16px; color: var(--yellow); text-align: center; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: 12px; }
.whatsapp-float { position: fixed; z-index: 50; right: 22px; bottom: 22px; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; background: #25d366; box-shadow: 0 12px 30px rgba(18,98,52,.35); font-size: 29px; transition: transform .2s, box-shadow .2s; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 34px rgba(18,98,52,.42); }

@media (max-width: 1050px) {
	.header-cta { display: none; }
	.menu-toggle { display: block; }
	.primary-nav { position: absolute; left: 20px; right: 20px; top: 80px; display: none; padding: 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { display: block; }
	.primary-nav a { display: block; padding: 11px 8px; }
	.primary-nav a::after { display: none; }
	.search-form { grid-template-columns: 1fr 1fr; gap: 10px; }
	.search-field { border: 1px solid #e4edf2; border-radius: 12px; }
	.search-submit { height: 64px; }
	.service-strip { grid-template-columns: repeat(4, 1fr); }
	.cards-grid.six { grid-template-columns: repeat(3, 1fr); }
	.feature-grid { grid-template-columns: 1fr; }
	.feature-card.large { min-height: 350px; }
}

@media (max-width: 760px) {
	.container { width: min(1180px, calc(100% - 28px)); }
	.topbar-meta span:first-child, .topbar-social { display: none; }
	.topbar-inner { justify-content: center; }
	.header-inner { min-height: 72px; }
	.brand-name { font-size: 24px; }
	.brand-tagline { font-size: 8px; }
	.hero { min-height: 570px; padding-top: 70px; }
	.hero h1 { font-size: 46px; }
	.search-panel { margin-top: -110px; }
	.search-form { grid-template-columns: 1fr; }
	.search-field { min-height: 62px; }
	.service-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 45px; }
	.cards-grid, .cards-grid.six { grid-template-columns: 1fr; }
	.section { padding: 55px 0; }
	.section-head { align-items: start; flex-direction: column; }
	.feature-side { grid-template-columns: 1fr; }
	.trust-grid { grid-template-columns: 1fr 1fr; }
	.trust-item:nth-child(2) { border-right: 0; }
	.single-layout { grid-template-columns: 1fr; }
	.offer-box { position: static; }
	.safaroc-form-grid { grid-template-columns: 1fr; }
	.safaroc-form-wide { grid-column: auto; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
	.footer-grid, .trust-grid { grid-template-columns: 1fr; }
	.trust-item { justify-content: flex-start; border-right: 0; }
	.hero h1 { font-size: 39px; }
}
