/*
Theme Name: Summit Enterprises
Theme URI: https://summitenterprises.pk
Author: Summit Enterprises
Description: Custom multi-page theme for Summit Enterprises: study abroad, medical tourism, and visa & immigration services.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: summit
*/

:root {
  --navy: #050816;
  --navy-2: #111729;
  --gold: #b39440;
  --gold-light: #d6c176;
  --gold-dark: #7d6528;
  --cream: #f8f6f0;
  --ink: #1b1f2a;
  --muted: #5f6470;
  --line: #e4dfd0;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(1, 4, 13, .12);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: "Fraunces", Georgia, serif; color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.section { padding: 76px 0; }
.section.alt { background: var(--white); }
.section.dark { background: #0c1224; color: #ddd6c3; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.eyebrow { display: inline-block; color: var(--gold-dark); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.section.dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--gold-light); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.section.dark .lead { color: #b5ad99; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-wa { background: #1fa855; color: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(1, 4, 13, .95); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(179, 148, 64, .35); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold-light); font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.35rem; }
.brand-logo { height: 54px; width: 54px; border-radius: 50%; object-fit: cover; display: block; flex: none; }
.brand-logo.is-custom { width: auto; border-radius: 0; height: 50px; }
.site-footer .brand-logo { height: 64px; width: 64px; }
.site-footer .brand-logo.is-custom { width: auto; height: 60px; }
.brand small { display: block; font-family: "Instrument Sans", sans-serif; font-weight: 500; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: #e8e1cf; font-weight: 500; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-light); margin: 5px 0; }

/* Hero */
.hero { background: linear-gradient(135deg, #0c1224 0%, #0d1224 100%); color: #ddd6c3; padding: 96px 0 90px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(179,148,64,.26), transparent 70%); }
.hero h1 { color: var(--white); max-width: 760px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p { max-width: 600px; font-size: 1.12rem; color: #b5ad99; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; position: relative; z-index: 1; }
.page-hero { background: linear-gradient(135deg, #0c1224, #0d1224); padding: 70px 0 60px; color: #b5ad99; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero p { max-width: 640px; font-size: 1.08rem; margin: 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -42px; position: relative; z-index: 2; }
.stat { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; border-top: 3px solid var(--gold); }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .icon { width: 50px; height: 50px; border-radius: 12px; background: #0c1224; color: var(--gold-light); border: 1px solid rgba(179, 148, 64, .5); display: grid; place-items: center; margin-bottom: 16px; font-size: 1.4rem; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .96rem; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .9rem; }
.dest-card h3 { display: flex; justify-content: space-between; align-items: baseline; }
.dest-card .tag { font-family: "Instrument Sans", sans-serif; font-size: .68rem; font-weight: 600; color: var(--gold-dark); letter-spacing: .1em; text-transform: uppercase; }

/* Destinations page */
.dest-search { max-width: 420px; margin: 32px auto 8px; }
.dest-search input { width: 100%; padding: 14px 18px; border: 1px solid #cfc8b6; border-radius: 999px; font: inherit; background: var(--white); }
.dest-search input:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.dest-region { margin-top: 40px; }
.region-title { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 20px; }
.region-title span { font-family: "Instrument Sans", sans-serif; font-size: .75rem; font-weight: 600; background: #0c1224; color: var(--gold-light); border-radius: 999px; padding: 3px 10px; }
.dest-item { padding: 18px 20px; display: block; }
.dest-item h3 { margin-bottom: 4px; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding-top: 54px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; color: #b5ad99; margin: 0; }

/* Service rows */
.service-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row ul, .checklist { list-style: none; padding: 0; margin: 0; }
.service-row li, .checklist li { padding: 9px 0 9px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.service-row li::before, .checklist li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* CTA */
.cta { background: linear-gradient(135deg, #0c1224, #0d1224); border: 1px solid rgba(179, 148, 64, .4); border-radius: 22px; padding: 56px 40px; text-align: center; color: #b5ad99; }
.cta h2 { color: var(--white); }
.cta .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.info-box { background: #0c1224; border: 1px solid rgba(179, 148, 64, .4); color: #ddd6c3; border-radius: var(--radius); padding: 32px; }
.info-box h3 { color: var(--white); }
.info-box dl { margin: 20px 0; }
.info-box dt { color: var(--gold-light); font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 16px; }
.info-box dd { margin: 2px 0 0; }
.info-box a { color: var(--white); }
.form-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfc8b6; border-radius: 10px; font: inherit; background: var(--cream); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; }
.notice.ok { background: #e4f5ea; color: #17623a; border: 1px solid #b7e2c7; }
.notice.err { background: #fde8e8; color: #8a1f1f; border: 1px solid #f3bcbc; }
.small { font-size: .85rem; color: var(--muted); }

/* Footer */
.site-footer { background: #0c1224; border-top: 1px solid rgba(179, 148, 64, .35); color: #b5ad99; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 36px; }
.site-footer h4 { color: var(--gold-light); font-family: "Instrument Sans", sans-serif; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b5ad99; }
.site-footer .brand { color: var(--gold-light); margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #1fa855; color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.25); }

/* Generic content */
.entry { max-width: 780px; }
.entry img { border-radius: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-row, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 74px; left: 0; right: 0; background: #0c1224; border-bottom: 1px solid rgba(179, 148, 64, .35); display: none; padding: 14px 20px 22px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stats, .grid-3, .grid-4, .grid-2, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 70px; }
  .cta { padding: 40px 22px; }
  .wa-float { padding: 12px 16px; }
}

/* One-page layout */
html { scroll-padding-top: 84px; }
section[id] { scroll-margin-top: 84px; }

/* Compact destinations */
#destinations { padding: 52px 0; }
#destinations .lead { font-size: 1rem; }
#destinations .dest-search { margin: 20px auto 0; max-width: 360px; }
#destinations .dest-search input { padding: 10px 16px; font-size: .92rem; }
#destinations .dest-region { margin-top: 24px; }
#destinations .region-title { font-size: 1.05rem; margin-bottom: 12px; padding-bottom: 6px; }
#destinations .region-title span { font-size: .68rem; padding: 2px 8px; }
#destinations .grid.grid-4 { display: flex; flex-wrap: wrap; gap: 8px; }
#destinations .dest-item { padding: 7px 14px; border-radius: 999px; display: inline-block; }
#destinations .dest-item h3 { font-family: "Instrument Sans", system-ui, sans-serif; font-size: .88rem !important; font-weight: 500; margin: 0 !important; color: var(--navy-2); }
#destinations .dest-item .small { display: none; }

/* ===== Design pass: warm minimal, single light theme ===== */
:root {
  --navy: #0c1224; --navy-2: #1a2238; --cream: #f6f3ec; --ink: #1c2030; --muted: #5d6272;
  --line: hsl(40 20% 30% / .13);
  --shadow: 0 1px 2px hsl(225 40% 10% / .04), 0 6px 14px hsl(225 40% 10% / .05), 0 18px 40px hsl(225 40% 10% / .06);
}
body { font-size: 1.02rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
h1 { line-height: 1.04; }
.center { text-align: left; }
.center .lead { margin-inline: 0; }
.section.alt { background: #fbf9f4; }
.section { padding: 68px 0; }
.site-header { background: rgba(12, 18, 36, .94); }

/* Hero: light, left-aligned, CTA above the fold */
.hero { background: var(--cream); color: var(--ink); padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.hero::after { display: none; }
.hero h1 { color: var(--navy); max-width: 780px; }
.hero p { color: var(--muted); max-width: 520px; }
.hero .eyebrow { color: var(--gold-dark); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.stats { margin-top: 0; gap: 0; border-bottom: 1px solid var(--line); }
.stat { background: none; box-shadow: none; border-radius: 0; border-top: 0; text-align: left; padding: 24px 24px 24px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }

/* Process: same light theme, no flip */
.section.dark { background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark h2, .section.dark h3 { color: var(--navy); }
.section.dark .eyebrow { color: var(--gold-dark); }
.step p { color: var(--muted); }

/* Fewer boxes: values and office become open columns */
.card { border-radius: 10px; }
#about .grid-3 { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
#about .card, #office .card { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; }
#office .grid-2 { grid-template-columns: 1.4fr 1fr; gap: 56px; }
.card .icon { width: 40px; height: 40px; border-radius: 10px; }
.region-title { border-bottom-width: 1px; }
.cta { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); text-align: left; color: var(--muted); padding: 44px 40px; border-radius: 16px; }
.cta h2 { color: var(--navy); }
.cta .actions { justify-content: flex-start; }

/* Motion: transform and opacity only */
.btn:active { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .card, .nav-toggle span { transition: transform .16s cubic-bezier(.23, 1, .32, 1), opacity .16s; }
  .reveal { opacity: 0; transform: translateY(10px) scale(.98); }
  .reveal.in { opacity: 1; transform: none; transition: opacity .24s cubic-bezier(.23, 1, .32, 1), transform .24s cubic-bezier(.23, 1, .32, 1); }
}

/* Hover only on real pointers */
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--gold-dark); }
  .btn-gold:hover { background: var(--gold-dark); color: var(--white); }
  .btn-outline:hover { background: var(--white); color: var(--navy); }
  .btn-navy:hover { background: var(--navy-2); color: var(--white); }
  .btn-wa:hover { background: #17863f; color: var(--white); }
  .main-nav a:hover, .main-nav .current a { color: var(--gold-light); }
  .main-nav a.btn-gold, .main-nav a.btn-gold:hover { color: var(--navy); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
  .info-box a:hover { color: var(--gold-dark); }
  .site-footer a:hover { color: var(--gold); }
  .wa-float:hover { color: #fff; background: #17863f; }
  #destinations .dest-item:hover { transform: none; box-shadow: none; background: var(--cream); }
  .btn-outline:hover { background: var(--navy); color: var(--white); }
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  #about .card:hover, #office .card:hover { transform: none; box-shadow: none; }
}
@media (max-width: 760px) {
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  #about .grid-3, #office .grid-2 { grid-template-columns: 1fr; gap: 28px; }
}

/* Last pass: balanced headlines, info boxes join the light theme */
h1, h2, h3 { text-wrap: balance; }
.info-box { background: #fff; border: 1px solid var(--line); color: var(--muted); box-shadow: var(--shadow); }
.info-box h3 { color: var(--navy); }
.info-box dt { color: var(--gold-dark); }
.info-box a:not(.btn) { color: var(--navy); }
.wa-float { box-shadow: 0 1px 2px hsl(225 40% 10% / .1), 0 10px 24px hsl(225 40% 10% / .18); }

/* Text-only wordmark in the header */
.site-header .brand { font-size: 1.6rem; line-height: 1.1; }
.site-header .brand small { font-size: .64rem; margin-top: 3px; }
.site-header .brand { font-size: 1.3rem; letter-spacing: .12em; font-weight: 600; }
