/*
Theme Name: DK Holidays
Theme URI: https://www.dkholidays.net
Author: DK Holidays
Author URI: https://www.dkholidays.net
Description: Custom WordPress theme for DK Holidays, a Chennai-based travel company offering domestic & international tour packages and corporate MICE travel. Includes destination catalogue, booking forms, and a MICE enquiry page.
Version: 1.20.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dk-holidays
*/

/* -----------------------------------------
   0. Variables & Reset
------------------------------------------ */
:root {
  --dk-primary: #1a4fa0;
  --dk-primary-dark: #0e2f66;
  --dk-accent: #2e6fe0;
  --dk-navy: #0f1f3d;
  --dk-bg: #fdfdfd;
  --dk-bg-alt: #f2f5fa;
  --dk-border: #e2e6ee;
  --dk-text: #2b2b2b;
  --dk-text-light: #6b7280;
  --dk-white: #ffffff;
  --dk-radius: 10px;
  --dk-shadow: 0 4px 16px rgba(15, 31, 61, 0.08);
  --dk-container: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dk-text);
  background: var(--dk-bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--dk-primary); text-decoration: none; }
a:hover { color: var(--dk-accent); }

h1, h2, h3, h4 { color: var(--dk-navy); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container {
  max-width: var(--dk-container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 64px 0; }
.section-alt { background: var(--dk-bg-alt); }
.section-title { text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--dk-text-light); max-width: 640px; margin: 0 auto 40px; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 6px;
  background: var(--dk-accent);
  color: var(--dk-white);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #1d4fb0; color: var(--dk-white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--dk-white);
  color: var(--dk-white);
}
.btn-outline:hover { background: var(--dk-white); color: var(--dk-navy); }

/* -----------------------------------------
   1. Header
------------------------------------------ */
.site-header {
  background: var(--dk-white);
  border-bottom: 1px solid var(--dk-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  max-width: var(--dk-container);
  margin: 0 auto;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding img { max-height: 52px; width: auto; }
.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dk-navy);
}
.site-title span { color: var(--dk-primary); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--dk-navy);
  font-weight: 600;
  font-size: .97rem;
}
.primary-nav a:hover { color: var(--dk-accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--dk-primary);
  white-space: nowrap;
}
.header-phone .dashicons { font-size: 20px; width: 20px; height: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--dk-navy);
  border-radius: 2px;
}

/* -----------------------------------------
   2. Hero
------------------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dk-navy), var(--dk-primary-dark));
  background-size: cover;
  background-position: center;
  color: var(--dk-white);
  padding: 160px 0 120px;
  min-height: 460px;
  display: flex;
  align-items: center;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, .45);
}
.hero-inner { position: relative; z-index: 1; width: 100%; }
/* Any .container placed directly inside a hero (all interior-page banners use this,
   not just the home hero) must sit above the ::before dark overlay too, or the title
   text gets visually buried under it - most noticeable once a bright photo is added. */
.hero > .container { position: relative; z-index: 1; width: 100%; }
.hero h1 { color: var(--dk-white); font-size: 3rem; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* Home hero slider - up to 3 slides, editable from Appearance > Customize.
   Each .hero-slide stacks in the same spot; only .is-active is visible, crossfaded. */
.hero-slider { display: block; padding: 0; background: none; }
.hero-slider::before { content: none; }
.hero-slides { position: relative; width: 100%; min-height: 460px; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 120px;
  background: linear-gradient(135deg, var(--dk-navy), var(--dk-primary-dark));
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, .45);
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide .hero-slide-btn { margin-top: 20px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.hero-dot.is-active { background: var(--dk-white); }

.page-hero {
  padding: 150px 0 110px;
  min-height: 400px;
  text-align: center;
}
.page-hero h1 { color: var(--dk-white); margin-bottom: 6px; }
.page-hero p { color: rgba(255,255,255,.85); }
.page-hero-intro { max-width: 760px; margin: 24px auto 40px; text-align: center; color: var(--dk-text-light); }

/* -----------------------------------------
   3. Booking / MICE Forms
------------------------------------------ */
.booking-form-wrap {
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
  padding: 30px;
  max-width: 980px;
  margin: -50px auto 0;
  position: relative;
  z-index: 5;
}
.booking-form-wrap h3 { text-align: center; margin-bottom: 20px; }
.dk-form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.dk-form-row.two-col { grid-template-columns: repeat(2, 1fr); }
.dk-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dk-navy);
}
.dk-field input,
.dk-field select,
.dk-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--dk-border);
  border-radius: 6px;
  font-size: .95rem;
  font-family: inherit;
  background: var(--dk-bg);
}
.dk-field textarea { resize: vertical; min-height: 90px; }
.dk-form-submit { text-align: center; margin-top: 8px; }
.dk-hp-field { position: absolute; left: -9999px; opacity: 0; }
.dk-form-notice {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 18px;
  font-weight: 600;
  text-align: center;
}
.dk-form-notice.success { background: #e3f6e8; color: #1c7c3c; }
.dk-form-notice.error { background: #fdeaea; color: #c0392b; }

.mice-form-wrap { background: var(--dk-white); border-radius: var(--dk-radius); box-shadow: var(--dk-shadow); padding: 34px; }

/* -----------------------------------------
   4. About Preview / About Page
------------------------------------------ */
.about-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
/* Cap the height so a tall/portrait uploaded photo doesn't stretch the whole row
   far past the height of the text next to it, leaving a large empty gap below the
   button. object-fit:cover keeps the photo looking cropped-not-squashed. */
.about-preview img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--dk-radius); box-shadow: var(--dk-shadow); }
.about-preview .about-copy p { color: var(--dk-text-light); }

.about-page-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}
.about-page-hero img { border-radius: var(--dk-radius); box-shadow: var(--dk-shadow); }

/* -----------------------------------------
   5. Why DK Holidays / Why MICE
------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 940px;
  margin: 0 auto;
}
.why-item {
  display: flex;
  gap: 16px;
  background: var(--dk-white);
  padding: 22px;
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
}
.why-item .dashicons {
  font-size: 30px;
  width: 44px;
  height: 44px;
  color: var(--dk-white);
  background: var(--dk-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.why-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.why-item p { margin: 0; color: var(--dk-text-light); font-size: .95rem; }

/* -----------------------------------------
   6. Destination Cards / Scroll Rows
------------------------------------------ */
.scroll-row-wrap { position: relative; }
.scroll-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 6px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--dk-border); border-radius: 4px; }

.destination-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  overflow: hidden;
  box-shadow: var(--dk-shadow);
  transition: transform .2s ease;
}
.destination-card:hover { transform: translateY(-4px); }
.destination-card .card-media {
  height: 170px;
  background: linear-gradient(135deg, var(--dk-primary), var(--dk-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dk-white);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: center;
  padding: 10px;
}
.destination-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.destination-card .card-body { padding: 16px; }
.destination-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.destination-card .card-cta { font-size: .85rem; font-weight: 700; color: var(--dk-accent); }

.scroll-arrows { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 10px; }
.scroll-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--dk-border);
  background: var(--dk-white);
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--dk-navy);
}
.scroll-arrow:hover { background: var(--dk-primary); color: var(--dk-white); }

/* Destination grid (taxonomy / parent listing pages) */
.destination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* -----------------------------------------
   7. Partners Marquee
------------------------------------------ */
.partners-marquee { overflow: hidden; position: relative; width: 100%; }
.partners-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: dk-scroll 25s linear infinite;
}
.partners-marquee:hover .partners-track { animation-play-state: paused; }
@keyframes dk-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.partner-logo {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: 8px;
  padding: 10px;
}
.partner-logo img { max-height: 50px; }
.partner-logo span { font-weight: 700; color: var(--dk-text-light); text-align: center; font-size: .85rem; }

/* -----------------------------------------
   8. Single Destination Leaf Page
------------------------------------------ */
.destination-content { max-width: 860px; margin: 0 auto 40px; }
.destination-content .featured { border-radius: var(--dk-radius); margin-bottom: 30px; box-shadow: var(--dk-shadow); }

/* -----------------------------------------
   9. Contact Page
------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.contact-info-card {
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
  padding: 30px;
}
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { display: flex; gap: 12px; margin-bottom: 18px; }
.contact-info-card .dashicons { color: var(--dk-primary); font-size: 22px; }
.contact-map { min-height: 320px; border-radius: var(--dk-radius); overflow: hidden; box-shadow: var(--dk-shadow); }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* -----------------------------------------
   10. Footer
------------------------------------------ */
.site-footer { background: var(--dk-navy); color: rgba(255,255,255,.85); padding: 40px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-footer h4 { color: var(--dk-white); font-size: 1rem; margin-bottom: 16px; }
.site-footer p, .site-footer a { color: rgba(255,255,255,.75); font-size: .92rem; }
.site-footer a:hover { color: var(--dk-white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-menu-hint { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: 12px; font-style: italic; }
.footer-links li { margin-bottom: 10px; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom { text-align: center; padding: 20px 0; font-size: .85rem; color: rgba(255,255,255,.6); }

/* -----------------------------------------
   11. Responsive
------------------------------------------ */
@media (max-width: 900px) {
  .about-preview, .about-page-hero, .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------
   12. Mega-menu dropdown (Domestic / International)
------------------------------------------ */
.primary-nav > ul > li.menu-item-has-dropdown { position: relative; }
.menu-item-row { display: inline-flex; align-items: center; gap: 2px; }
.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--dk-navy);
  line-height: 0;
}
.nav-dropdown-toggle .dashicons { font-size: 18px; width: 18px; height: 18px; transition: transform .2s ease; }
.menu-item-has-dropdown.dropdown-open .nav-dropdown-toggle .dashicons,
.menu-item-has-dropdown:hover .nav-dropdown-toggle .dashicons { transform: rotate(180deg); }

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dk-white);
  border: 1px solid var(--dk-border);
  border-radius: 8px;
  box-shadow: var(--dk-shadow);
  padding: 16px;
  min-width: 240px;
  z-index: 50;
}
.menu-item-has-dropdown:hover .nav-dropdown,
.menu-item-has-dropdown:focus-within .nav-dropdown,
.menu-item-has-dropdown.dropdown-open .nav-dropdown { display: block; }
.nav-dropdown-inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 18px; }
.nav-dropdown-inner a {
  display: block;
  padding: 8px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--dk-navy);
  white-space: nowrap;
}
.nav-dropdown-inner a:hover { background: var(--dk-bg-alt); color: var(--dk-accent); }

/* -----------------------------------------
   13. Stats Bar ("Why Customers Love DK Holidays?")
------------------------------------------ */
.stats-bar-section { background: #fdf3ea; }
.stats-bar-section .section-title {
  color: var(--dk-accent);
  font-family: Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
  font-size: 2.4rem;
  margin-bottom: 36px;
}
.stats-bar { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.stat-item { display: flex; align-items: center; gap: 14px; text-align: left; padding: 0 34px; }
.stat-item .dashicons { font-size: 40px; width: 40px; height: 40px; color: var(--dk-primary); flex-shrink: 0; }
.stat-number { font-size: 2.3rem; font-weight: 900; color: var(--dk-accent); line-height: 1.1; }
.stat-label { color: #384a63; font-size: .92rem; font-weight: 700; margin-top: 2px; }
.stat-divider { width: 1px; height: 54px; background: rgba(0,0,0,.15); }

/* -----------------------------------------
   14. Trip Essentials & Activities (leaf destination pages)
------------------------------------------ */
.trip-essentials, .destination-activities {
  background: var(--dk-bg-alt);
  border-radius: var(--dk-radius);
  padding: 24px;
  margin-top: 24px;
}
.trip-essentials ul, .destination-activities ul { list-style: none; margin: 0; padding: 0; }
.trip-essentials li, .destination-activities li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--dk-border);
}
.trip-essentials li:last-child, .destination-activities li:last-child { border-bottom: none; }
.trip-essentials .dashicons, .destination-activities .dashicons { color: var(--dk-primary); flex-shrink: 0; margin-top: 2px; }

/* -----------------------------------------
   15. Testimonials
------------------------------------------ */
.testimonial-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--dk-white);
  border-radius: var(--dk-radius);
  box-shadow: var(--dk-shadow);
  padding: 26px;
}
.testimonial-card .stars { color: #f2a516; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p.quote { font-style: italic; color: var(--dk-text); }
.testimonial-card .author { font-weight: 700; color: var(--dk-navy); margin-top: 14px; }
.testimonial-card .author span { font-weight: 400; color: var(--dk-text-light); }

/* -----------------------------------------
   16. FAQ Accordion
------------------------------------------ */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  border: none;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--dk-white);
  box-shadow: 0 2px 8px rgba(20, 33, 61, .06);
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dk-navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .dashicons { transition: transform .2s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.is-open .faq-question .dashicons { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 26px; color: var(--dk-text-light); }
.faq-item.is-open .faq-answer { max-height: 400px; padding: 0 26px 22px; }

.faq-item.faq-featured {
  background: linear-gradient(135deg, var(--dk-primary-dark), var(--dk-primary));
  box-shadow: 0 12px 28px rgba(11, 84, 87, .25);
}
.faq-item.faq-featured .faq-question { color: var(--dk-white); }
.faq-item.faq-featured .faq-question .dashicons { color: var(--dk-white); }
.faq-item.faq-featured .faq-answer,
.faq-item.faq-featured .faq-answer p { color: rgba(255,255,255,.92); }

/* -----------------------------------------
   17. MICE page (core values, tabs)
------------------------------------------ */
.mice-intro { max-width: 820px; margin: 0 auto 10px; text-align: center; color: var(--dk-text-light); }
.mice-tabs { max-width: 900px; margin: 0 auto; }
.mice-tab-buttons { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.mice-tab-btn {
  padding: 10px 22px;
  border-radius: 30px;
  border: 2px solid var(--dk-primary);
  background: var(--dk-white);
  color: var(--dk-primary);
  font-weight: 700;
  cursor: pointer;
}
.mice-tab-btn.is-active { background: var(--dk-primary); color: var(--dk-white); }
.mice-tab-panel { display: none; background: var(--dk-white); border-radius: var(--dk-radius); box-shadow: var(--dk-shadow); padding: 30px; }
.mice-tab-panel.is-active { display: block; }

.mice-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
.mice-contact-card { background: var(--dk-white); border-radius: var(--dk-radius); box-shadow: var(--dk-shadow); padding: 24px; text-align: center; }
.mice-contact-card .dashicons { font-size: 30px; color: var(--dk-primary); margin-bottom: 10px; }

/* -----------------------------------------
   18. Newsletter banner (above footer, sitewide)
------------------------------------------ */
.pre-footer-cta { padding: 50px 0 0; }
.newsletter-banner {
  position: relative;
  background: linear-gradient(135deg, var(--dk-navy), var(--dk-primary-dark));
  border-radius: 24px;
  padding: 64px 60px;
  overflow: hidden;
}
.newsletter-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.newsletter-copy { flex: 1 1 320px; max-width: 420px; }
.newsletter-copy h3 { color: var(--dk-white); font-size: 2.1rem; margin-bottom: 10px; }
.newsletter-copy p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.05rem; }
.newsletter-action { flex: 1 1 380px; max-width: 480px; }
.newsletter-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 54px;
  padding: 8px 8px 8px 22px;
  gap: 10px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--dk-white);
  padding: 12px 0;
  font-size: 1rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.7); }
.newsletter-form input[type="email"]:focus { outline: none; }
.newsletter-form button {
  background: #ffce33;
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  padding: 16px 34px;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 206, 51, .35);
  transition: transform .15s ease, background .15s ease;
}
.newsletter-form button:hover { background: #ffd966; transform: translateY(-1px); }
.newsletter-decor { position: absolute; right: 0; bottom: 0; width: 50%; max-width: 420px; z-index: 1; pointer-events: none; }
.newsletter-decor svg { width: 100%; height: auto; display: block; }
.newsletter-action .dk-form-notice { margin-bottom: 14px; }

@media (max-width: 900px) {
  .mice-contact-cards { grid-template-columns: 1fr; }
  .nav-dropdown-inner { grid-template-columns: 1fr; }
  .newsletter-banner { padding: 40px 28px; }
  .newsletter-row { flex-direction: column; align-items: center; text-align: center; }
  .newsletter-copy { max-width: 100%; }
  .newsletter-action { width: 100%; max-width: 420px; margin: 0 auto; }
  .newsletter-decor { display: none; }
}

@media (max-width: 782px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dk-white);
    border-top: 1px solid var(--dk-border);
    box-shadow: var(--dk-shadow);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 10px 20px; }
  .primary-nav li { border-bottom: 1px solid var(--dk-border); }
  .primary-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: block; }
  .header-phone span.phone-text { display: none; }
  .dk-form-row, .dk-form-row.two-col { grid-template-columns: 1fr; }
  .about-preview img { height: 260px; }
  .hero { padding: 120px 0 80px; min-height: 360px; }
  .hero h1 { font-size: 2rem; }
  /* Re-assert the slider's own padding:0 here - without this, the rule above
     (same specificity, but earlier in the file than the .hero-slider override)
     wins on mobile and reintroduces a blank gap above the slide image. */
  .hero-slider { padding: 0; min-height: 0; }
  .hero-slides { min-height: 360px; }
  .hero-slide { padding: 120px 20px 80px; }
  .page-hero { padding: 110px 0 70px; min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-dropdown { position: static; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; }
  .menu-item-has-dropdown.dropdown-open .nav-dropdown { display: block; }
  .nav-dropdown-inner { grid-template-columns: 1fr; }
  /* Mega-menu row: push the label to the left and the toggle arrow to the far right
     edge, instead of them sitting bunched together next to each other. */
  .menu-item-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 0; }
  .menu-item-row a { padding: 14px 0; }
  .nav-dropdown-toggle { padding: 14px 4px; }
  .stat-divider { display: none; }
  /* Flex-wrap left items ragged/off-center on narrow screens since each item's
     width differs. A fixed 2-column grid keeps every item lined up cleanly. */
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stat-item { padding: 0; justify-content: center; }
  .newsletter-banner { padding: 32px 20px; border-radius: 18px; }
  /* The 40px row gap is sized for the desktop side-by-side layout - once stacked
     on mobile that same gap reads as a large empty space between the text and the
     form, so tighten it here specifically. */
  .newsletter-row { gap: 18px; }
  .newsletter-copy p { margin-bottom: 4px; }
  .newsletter-form { flex-direction: column; align-items: stretch; background: transparent; border: none; border-radius: 0; padding: 0; gap: 12px; }
  .newsletter-form input[type="email"] { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 50px; padding: 14px 20px; width: 100%; text-align: center; }
  .newsletter-form button { width: 100%; text-align: center; }
  /* Tighten the padding stack between the banner and the footer below it - the
     desktop values (50px + 40px) compound into a large gap once the banner itself
     also shrinks on mobile. */
  .pre-footer-cta { padding: 28px 0 0; }
  .site-footer { padding: 24px 0 0; }
  /* Footer: stack columns and centre everything so it reads cleanly on a narrow
     screen, instead of staying left-aligned with uneven left/right whitespace. */
  .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-social { justify-content: center; }
  .footer-col ul.footer-links { text-align: left; display: inline-block; margin: 0 auto; }
  .footer-bottom { padding: 20px 20px; }
}
