/* 
  CLIENT: Sample Company(Elmhult Tours)
  DATE: August 2025
  VERSION: 1.0
  
  This CSS file contains all styling for Sample Company(Elmhult Tours.
  To customize for a new client, copy this file and modify the values below.
*/

:root {
  /* ===== BRAND COLORS ===== */
  --primary: 121 67% 30%;          /* #1A7F1B (Kelly Green) */
  --secondary: 210 100% 40%;        /* #1565C0 (Blue) */
  --accent: 25 100% 48%;            /* #F57C00 (Orange) */
  
  /* ===== COMPLEMENTARY COLORS ===== */
  --background: 0 0% 100%;          /* #FFFFFF (White) */
  --foreground: 0 0% 20%;           /* #333333 (Text color) */
  --light-gray: 0 0% 96%;           /* #F5F5F5 */
  --text-color: 0 0% 20%;           /* #333333 */
  --muted-text: 0 0% 40%;           /* #666666 */
  --border-color: 0 0% 88%;         /* #E0E0E0 */
  --footer-bg: 210 29% 24%;         /* #2C3E50 (Dark gray) */
  
  /* ===== FOREGROUND COLORS (for text on colored backgrounds) ===== */
  --primary-foreground: 0 0% 100%;      /* #FFFFFF (White text on primary background) */
  --secondary-foreground: 0 0% 100%;   /* #FFFFFF (White text on secondary background) */
  --accent-foreground: 0 0% 100%;      /* #FFFFFF (White text on accent background) */
  
  /* ===== UTILITY COLORS ===== */
  --muted: 0 0% 96%;                /* #F5F5F5 (Light gray background) */
  --muted-foreground: 0 0% 40%;     /* #666666 (Text on muted background) */
  --border: 0 0% 88%;               /* #E0E0E0 (Border color) */
  --input: 0 0% 88%;                /* #E0E0E0 (Input border color) */
  --ring: 158 49% 30%;              /* Matches primary color (Focus ring color - same as primary) */
  
  /* ===== TYPOGRAPHY ===== */
  --font-primary: "Roboto", sans-serif;
  --font-secondary: "Open Sans", sans-serif;
  --font-fallback: Arial, sans-serif;
  
  /* ===== FONT SIZES ===== */
  --h1-size: 36px;
  --h1-size-mobile: 28px;
  --h2-size: 28px;
  --h2-size-mobile: 24px;
  --h3-size: 22px;
  --h3-size-mobile: 20px;
  --h4-size: 18px;
  --body-size: 16px;
  --small-size: 14px;
  --caption-size: 12px;
  
  /* ===== SPACING ===== */
  --section-padding: 60px;
  --container-max-width: 1200px;
  --container-padding: 20px;
  --container-padding-mobile: 15px;
  --element-margin: 20px;
  --line-height: 1.6;
  --radius: 0.5rem;
  
  /* ===== BUTTONS ===== */
  --btn-primary-padding: 12px 24px;
  --btn-secondary-padding: 10px 22px;
  --btn-radius: 4px;
  
  /* ===== IMAGES ===== */
  --image-radius: 8px;
  
  /* ===== SHADOWS ===== */
  --shadow-default: 0 2px 4px rgba(0,0,0,0.1);
  
  /* ===== LOGO ===== */
  --logo-width: 180px;
  
  /* ===== BREAKPOINTS ===== */
  --mobile-breakpoint: 768px;
  
  /* ===== ADDITIONAL BORDER RADIUS VARIABLES ===== */
  --input-radius: 4px;              /* Border radius for input fields */
  --tag-radius: 0.75rem;            /* Border radius for tags and badges */
}

/* ===== GLOBAL STYLES ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: hsl(var(--text-color));
  background-color: hsl(var(--background));
  margin: 0;
  padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: var(--h1-size);
  font-family: var(--font-primary);
  color: hsl(var(--background));
  margin: 0 0 var(--element-margin) 0;
  font-weight: 600;
}

h2 {
  font-size: var(--h2-size);
  font-family: var(--font-primary);
  color: hsl(var(--background));
  margin: 0 0 var(--element-margin) 0;
  font-weight: 600;
}

h3 {
  font-size: var(--h3-size);
  font-family: var(--font-primary);
  color: hsl(var(--text-color));
  margin: 0 0 var(--element-margin) 0;
  font-weight: 600;
}

h4 {
  font-size: var(--h4-size);
  font-family: var(--font-primary);
  color: hsl(var(--text-color));
  margin: 0 0 var(--element-margin) 0;
  font-weight: 600;
}

p {
  font-size: var(--body-size);
  line-height: var(--line-height);
  color: hsl(var(--text-color));
  margin: 0 0 var(--element-margin) 0;
}

.small-text {
  font-size: var(--small-size);
  color: hsl(var(--muted-text));
}

.caption-text {
  font-size: var(--caption-size);
  color: hsl(var(--muted-text));
}

/* ===== BUTTONS ===== */
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border: none;
  padding: var(--btn-primary-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border: none;
  padding: var(--btn-secondary-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.9);
}

.btn-outline {
  background-color: transparent;
  color: hsl(var(--primary));
  border: 2px solid hsl(var(--primary));
  padding: calc(var(--btn-primary-padding) - 2px);
  border-radius: var(--btn-radius);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--text-color));
  border: none;
  padding: var(--btn-primary-padding);
  border-radius: var(--btn-radius);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-ghost:hover {
  background-color: hsl(var(--muted));
}

/* ===== INPUT FIELDS ===== */
.input-field {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.5rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

/* ===== CARDS ===== */
.card {
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-default);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.card-image {
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.card-content {
  /* Content is already styled by the card padding */
}

.card-title {
  font-size: var(--h3-size);
  font-weight: 600;
  color: hsl(var(--text-color));
  margin: 0 0 0.5rem 0;
}

.card-text {
  color: hsl(var(--muted-text));
  line-height: var(--line-height);
  margin: 0 0 1rem 0;
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: hsl(var(--primary)); }
.text-secondary { color: hsl(var(--secondary)); }
.text-accent { color: hsl(var(--accent)); }
.text-muted { color: hsl(var(--muted-text)); }

.bg-primary { background-color: hsl(var(--primary)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-accent { background-color: hsl(var(--accent)); }
.bg-light { background-color: hsl(var(--light-gray)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-background { background-color: hsl(var(--background)); }

.border-primary { border-color: hsl(var(--primary)); }
.border-secondary { border-color: hsl(var(--secondary)); }
.border-border { border-color: hsl(var(--border)); }

.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }
.text-accent-foreground { color: hsl(var(--accent-foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }

/* ===== HEADER ===== */
.header {
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border-color));
  padding: 1rem 0;
}

.header .logo {
  width: var(--logo-width);
  height: auto;
}

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

/* ===== IMAGES ===== */
.default-img-radius {
  border-radius: var(--image-radius);
  box-shadow: var(--shadow-default);
}
/* ===== FORMS ===== */
input, textarea, select {
  font-family: var(--font-primary);
  font-size: var(--body-size);
  border: 1px solid hsl(var(--border-color));
  border-radius: var(--btn-radius);
  padding: 0.5rem;
  background-color: hsl(var(--background));
  color: hsl(var(--text-color));
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--container-padding-mobile);
  }
  
  h1 { font-size: var(--h1-size-mobile); }
  h2 { font-size: var(--h2-size-mobile); }
  h3 { font-size: var(--h3-size-mobile); }
  
  .section {
    padding: calc(var(--section-padding) / 2) 0;
  }
  
  /* Horizontal only — `padding: 0 …` clears Tailwind `py-*` on `.container` (e.g. Footer1 on mobile). */
  .container {
    padding-inline: var(--container-padding-mobile);
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Remove default browser focus outline for all input elements */
input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
}
/* ===== FOCUS VISIBILITY ===== */
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* === Client styles === */

/* Separate fonts for buttons vs inputs */
body button,
body .btn,
body [type="button"],
body [type="submit"],
body [role="button"] {
  font-family: var(--font-buttons, "Ubuntu", sans-serif) !important;
  font-weight: var(--btn-font-weight, 600) !important;
}

body input,
body textarea,
body select {
  font-family: var(--font-inputs, "Quicksand", sans-serif) !important;
  font-weight: var(--input-font-weight, 400) !important;
}

/* Top navigation: white background + height */
:root { --header-height: 64px; }

body .header,
body header,
body nav[role="navigation"] {
  background-color: #fff !important;
  min-height: var(--header-height);
}

body header .bg-primary,
body .header .bg-primary,
body nav[role="navigation"] .bg-primary {
  background-color: #fff !important;
}

/* Booking engine header: restore primary background for active step circle */
body header.booking-engine-header .booking-step-active {
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
}

/* Footer: light gray */
body .footer,
body footer,
body .site-footer {
  background-color: hsl(210 20% 95%) !important;
}

body footer .bg-primary,
body .footer .bg-primary,
body .site-footer .bg-primary {
  background-color: inherit !important;
}

/* Dark text for header/footer */
body .header,
body header,
body nav[role="navigation"],
body .header *,
body header *,
body nav[role="navigation"] *,
body .footer,
body footer,
body .site-footer,
body .footer *,
body footer *,
body .site-footer * {
  color: hsl(var(--foreground, 215 25% 27%)) !important;
  opacity: 1 !important;
}
/* Contact button (hover:bg-primary + hover:text-white): keep text white on hover */
body header .hover\:text-white:hover {
  color: white !important;
}
