/* ============================================
   ANDY WRIGHT TRAVEL - Main Stylesheet
   Accessible Travel | Thailand & Worldwide
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --red:        #c0272d;
  --red-dark:   #9e1f24;
  --blue:       #1d6dbf;
  --blue-dark:  #14539a;
  --white:      #ffffff;
  --off-white:  #f7f7f7;
  --light-grey: #e8e8e8;
  --mid-grey:   #999;
  --dark:       #1a1a2e;
  --text:       #2d2d2d;
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
  --shadow:     0 4px 18px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.18);
  --radius:     6px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

/* ---- UTILITY ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--dark); color: var(--white); }
.text-center { text-align: center; }
.text-red { color: var(--red); }
.text-blue { color: var(--blue); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/* ---- HEADINGS ---- */
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 { color: var(--dark); }
.section-title .underline {
  width: 60px; height: 4px;
  background: var(--red);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-title p { margin-top: 14px; color: #666; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--red); }
.btn-blue { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.site-logo img { height: 60px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; }
.main-nav ul li { position: relative; }
.main-nav ul li a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  transition: color var(--transition);
  border-bottom: 3px solid transparent;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Dropdown */
.main-nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  border-top: 3px solid var(--red);
  z-index: 999;
}
.main-nav ul li:hover .dropdown { display: block; }
.main-nav ul li .dropdown li a {
  padding: 10px 18px;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--light-grey);
  white-space: nowrap;
}
.main-nav ul li .dropdown li a:hover { background: var(--off-white); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  overflow: hidden;
  background: var(--dark);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 760px;
}
.slide-content h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.slide-content p {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}
.slide-content .btn { margin: 0 6px; }

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background var(--transition);
  border: none;
}
.slider-dot.active { background: var(--red); }

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: 2px solid rgba(255,255,255,0.4);
  width: 46px; height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: var(--red); border-color: var(--red); }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* ============================================
   FEATURE CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-img { height: 200px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 20px; }
.card-body h3 { margin-bottom: 8px; color: var(--dark); }
.card-body p { font-size: 0.9rem; color: #666; margin-bottom: 14px; }
.card-tag {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* ============================================
   DESTINATIONS BANNER ROW
   ============================================ */
.dest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}
.dest-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
  cursor: pointer;
}
.dest-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.dest-item:hover img { transform: scale(1.08); }
.dest-item .dest-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col.reverse .col-img { order: -1; }
@media(max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col.reverse .col-img { order: 0; }
}
.col-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.col-text h2 { margin-bottom: 14px; }
.col-text p { margin-bottom: 14px; color: #555; }

/* ============================================
   YOUTUBE SECTION
   ============================================ */
.yt-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.yt-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.yt-card-header {
  padding: 24px;
  text-align: center;
}
.yt-card-header .yt-icon {
  width: 56px; height: 56px;
  background: #ff0000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: white;
  font-size: 1.4rem;
}
.yt-card h3 { font-size: 1rem; }
.yt-card p { font-size: 0.88rem; color: #666; padding: 0 24px 20px; }
.yt-card .btn { margin: 0 24px 24px; }

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  background: var(--dark);
  color: white;
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red) 0%, var(--dark) 60%);
  opacity: 0.7;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); }
.page-hero .breadcrumb { margin-top: 10px; font-size: 0.9rem; opacity: 0.75; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.85); }

/* ============================================
   BLOG / ARTICLES
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 640px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--dark);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--blue); }
.form-group textarea { min-height: 130px; resize: vertical; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--dark); color: #ccc; }

.footer-top {
  padding: 50px 0 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media(max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 540px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 32px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #aaa; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--red); }
.footer-col p { font-size: 0.88rem; line-height: 1.7; color: #aaa; }
.footer-logo { margin-bottom: 16px; max-width: 180px; }

.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #aaa;
  font-size: 0.9rem;
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--red); color: white; }

.footer-bottom {
  padding: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: #777;
}
.footer-bottom a { color: #999; }
.footer-bottom a:hover { color: var(--red); }

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.info-box.warning { border-left-color: var(--red); }
.info-box.success { border-left-color: #28a745; }

/* ============================================
   ACCESSIBILITY RIBBON
   ============================================ */
.access-ribbon {
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
}
.access-ribbon span { color: rgba(255,255,255,0.7); font-weight: 400; margin-left: 8px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; box-shadow: var(--shadow-lg); padding: 10px 0; }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; width: 100%; }
  .main-nav ul li a { padding: 12px 20px; font-size: 0.88rem; }
  .main-nav ul li .dropdown { position: static; box-shadow: none; border-top: none; background: var(--off-white); }
  .nav-toggle { display: flex; }
  .hero-slider { height: 420px; }
  .slider-arrow { display: none; }
}

@media (max-width: 540px) {
  .hero-slider { height: 340px; }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
