/* iPackTour - Travel Packing & Planning Website */
/* Author: Sarah Mitchell */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary: #0891b2;
  --accent: #f97316;
  --bg: #0f172a;
  --light: #fefce8;
  --white: #ffffff;
  --teal: #06b6d4;
  --dark: #1e293b;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: var(--white);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.logo i {
  font-size: 1.8rem;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85), rgba(8, 145, 178, 0.7)),
    url('https://images.unsplash.com/photo-1506929562872-bb421503ef21?w=1400&q=80') center/cover;
  color: var(--white);
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

.hero-small {
  min-height: 50vh;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--bg) 0%, var(--primary) 100%);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 2rem;
}

.section-light {
  background: var(--white);
}

.section-dark {
  background: var(--bg);
  color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--bg);
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-dark .section-header h2 {
  color: var(--white);
}

.section-dark .section-header p {
  color: var(--light-gray);
}

/* ===== TOOL CARDS ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.tool-icon i {
  font-size: 1.75rem;
  color: var(--white);
}

.tool-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--bg);
}

.tool-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== ARTICLE CARDS ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-content {
  padding: 1.5rem;
}

.article-category {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--bg);
}

.article-card h3:hover {
  color: var(--primary);
}

.article-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray);
}

.article-meta i {
  margin-right: 0.25rem;
}

/* ===== FEATURED SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent), #fb923c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--white);
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--bg);
}

.feature-item p {
  color: var(--gray);
}

/* ===== TOOL PAGE STYLES ===== */
.tool-page {
  padding-top: 80px;
}

.tool-hero {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg), var(--primary));
  color: var(--white);
  text-align: center;
}

.tool-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.tool-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.tool-hero p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.tool-hero .tool-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
}

.tool-hero .tool-icon i {
  font-size: 2.5rem;
}

/* ===== CALCULATOR STYLES ===== */
.calculator {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.result-box {
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 2rem;
  display: none;
}

.result-box.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-box h3 {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.result-box .result-value {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.result-box .result-unit {
  font-size: 1.25rem;
  opacity: 0.9;
}

.result-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.result-details ul {
  text-align: left;
  list-style: none;
}

.result-details li {
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CHECKLIST ===== */
.checklist {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.checklist h4 {
  margin-bottom: 1rem;
  color: var(--dark);
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.checklist-item label {
  flex: 1;
  cursor: pointer;
}

.checklist-item.checked label {
  text-decoration: line-through;
  color: var(--gray);
}

/* ===== ABOUT PAGE ===== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-text h2 {
  font-size: 2rem;
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  text-align: center;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--light);
}

.team-member h3 {
  font-size: 1.25rem;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.team-member .role {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-member p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  padding: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-size: 1.5rem;
  color: var(--bg);
  margin-bottom: 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--dark);
}

.footer-brand h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand h3 i {
  color: var(--accent);
}

.footer-brand p {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ===== LEGAL PAGES ===== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.legal-content h1 {
  font-size: 2.5rem;
  color: var(--bg);
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--bg);
  margin: 2rem 0 1rem;
}

.legal-content p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
  list-style: disc;
}

.legal-content li {
  color: var(--gray);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-content h1 {
  font-size: 8rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-content h2 {
  font-size: 2rem;
  color: var(--bg);
  margin-bottom: 1rem;
}

.error-content p {
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .tools-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .tool-hero h1 {
    font-size: 1.75rem;
  }

  .calculator {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-gray { color: var(--gray); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo i {
  color: var(--accent);
  font-size: 1.8rem;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s;
  display: block;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #fff;
  background: rgba(8,145,178,0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-menu li {
    width: 100%;
  }
  .nav-menu li a {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

.nav-menu li a.active {
  color: #fff;
  background: rgba(8,145,178,0.4);
}

body.articles-body {
  background-color: var(--bg);
}
