/* =============================
   GuideStyles.css
   Brand: Tour Guide Debbie – Puerto Rico
   Purpose: High-clarity heritage tourism
============================= */

/* =============================================
   Brand + Heritage Color System
============================================= */
:root {
  --brand-blue: #243f8f;
  --brand-blue-dark: #1b2f6b;
  --brand-gold: #f6a019;

  --heritage-navy: #1f2a44;
  --heritage-indigo: #2c3e63;
  --heritage-gold: #c9a24d;
  --heritage-sand: #f4efe6;
  --heritage-white: #ffffff;
}

/* =============================================
   Global Base
============================================= */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--heritage-navy);
  background-color: var(--heritage-sand);
  line-height: 1.65;
  overflow-x: hidden;
}

/* =============================================
   NAVBAR
============================================= */
.navbar {
  background-color: var(--heritage-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-height: 72px;
  padding: 0.5rem 0;
}

.navbar-logo {
  height: 64px;
}

.navbar-brand-text,
.navbar-phone,
.nav-link {
  font-weight: 600;
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.desktop-only { display: flex; }
.mobile-only { display: none; }

@media (max-width: 767px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
  .navbar-logo { height: 56px; }
}

/* =============================================
   HERO / JUMBOTRON
============================================= */
.jumbotron {
  position: relative;
  background: url("image/header.jpg") center / cover no-repeat;
  color: var(--heritage-white);
  padding: 7rem 0 5rem;
}

.jumbotron::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}

.jumbotron .container {
  position: relative;
  z-index: 2;
}

/* =============================================
   HERO TITLE (SINGLE SOURCE OF TRUTH)
============================================= */
.hero-title {
  color: var(--brand-gold);
  font-weight: 800;
  line-height: 1.15;
  max-width: 760px;
  margin: 4.5rem 0 2.75rem;
  text-align: left;
  text-shadow: 0 3px 6px rgba(0,0,0,0.65);
  animation: heroFade 1s ease-out both;
}

.hero-title .line { display: block; }
.hero-title .split { display: inline-block; }

@keyframes heroFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  .hero-title { max-width: 12ch; line-height: 1.05; margin-top: 2.25rem; }
  .hero-title .split { display: block; }
  .jumbotron { padding: 6rem 0 4rem; background-position: center 20%; }
}

/* =============================================
   HEADINGS
============================================= */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--heritage-navy);
}

/* =============================================
   CARDS
============================================= */
.card {
  background-color: var(--heritage-white);
  border-radius: 0.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
}

.card-title { color: var(--heritage-indigo); }
.card:hover .card-title { color: var(--brand-gold); }
.card-text { color: #3d3d3d; }

/* Card title behavior */
.responsive-card-title {
  font-size: 1.7rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .responsive-card-title { white-space: normal; }
}

/* Card Subtitle – Heritage Editorial Style */
.card-subtitle {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: #6b7280;
}

@media (max-width: 767px) {
  .card-subtitle { font-size: 0.95rem; }
}

/* =====================================
   PRIMARY CTA — View / Experience Tour
   Brand Gold / Orange
   High specificity — overrides Bootstrap
===================================== */

/* Applies to all <a> buttons and cards */
.btn-primary {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold); 
  color: var(--heritage-navy);
  font-weight: 700;
  font-size: 1.5rem;       /* desktop readability */
  letter-spacing: 0.3px;
  padding: 0.85rem 1.75rem;
  transition: background-color 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

/* Hover / Focus */
.btn-primary:hover,
.btn-primary:focus,
  background-color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: var(--heritage-white);
}

/* Active / Pressed */
.btn-primary:active {
  background-color: var(--heritage-navy);
  border-color: var(--heritage-navy);
  color: var(--heritage-white);
}

/* =====================================
   SECONDARY CTA — FAQ / Blog
===================================== */
.btn-heritage-indigo {
  background-color: var(--heritage-indigo);
  border-color: var(--heritage-indigo);
  color: var(--heritage-white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn-heritage-indigo:hover,
.btn-heritage-indigo:focus {
  background-color: var(--heritage-navy);
  border-color: var(--heritage-navy);
  color: var(--heritage-white);
}

.btn-heritage-indigo:active {
  background-color: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: var(--heritage-white);
}

/* FAQ & Blog Buttons — Size & Readability */
.faq-blog-buttons .btn-heritage-indigo {
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  min-width: 140px;
}

/* FAQ / BLOG BUTTON SPACING */
.faq-blog-buttons .col-auto { margin-bottom: 0.75rem; }

/* =============================================
   MOBILE BUTTON ACCESSIBILITY (ENHANCED)
============================================= */
@media (max-width: 767px) {

  /* Primary CTA must dominate */
  a.btn.btn-primary,
  .card .btn.btn-primary {
    font-size: 1.65rem !important;
    padding: 0.95rem 1.9rem !important;
    min-height: 52px !important;  /* WCAG */
  }

  /* Secondary CTA — FAQ / Blog */
  .btn-heritage-indigo {
    font-size: 1.05rem;
    padding: 0.95rem 1.9rem;
    min-height: 52px;
  }
}

/* =============================================
   FOOTER – BASE
============================================= */
.site-footer {
  background-color: var(--heritage-navy);
  color: var(--heritage-white);
  font-size: 0.95rem;
  padding: 2rem 0;
}

.site-footer a {
  color: var(--heritage-white);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--heritage-gold);
  text-decoration: underline;
}

.footer-social a {
  color: var(--heritage-gold);
  font-size: 1.1rem;
  margin-right: 0.75rem;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  color: var(--heritage-gold);
  opacity: 0.85;
}

/* Back to top */
.footer-backtotop { color: var(--heritage-white); }
.footer-backtotop:hover,
.footer-backtotop:focus { color: var(--heritage-gold); }

/* Footer SEO Links */
.footer-seo-links h6 { color: var(--heritage-gold); font-weight: 700; margin-bottom: 1rem; }

.footer-seo-links .footer-links li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.footer-seo-links .footer-links li a {
  color: var(--heritage-white);
  text-decoration: none;
  display: inline-block;
  transition: color 0.25s ease;
}

.footer-seo-links .footer-links li a:hover,
.footer-seo-links .footer-links li a:focus {
  color: var(--heritage-gold);
  text-decoration: underline;
}

.footer-seo-links .footer-links li::before {
  content: "\f3c5";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--heritage-white);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .footer-seo-links .footer-links li { padding-left: 2.5rem; margin-bottom: 1rem; }
  .footer-seo-links .footer-links li::before { font-size: 1.3rem; }
}
