@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@400;700&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  /* --- FONT PALETTE --- */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* --- TEXT & BACKGROUND COLORS (Defaulting to a dark theme) --- */
  --color-background: #18181b;
  --color-text-primary: #dfdfdf;
  --color-text-secondary: #c1c1c5;
  --color-border: #a1a1a1;
}

/* --- BASE LAYOUT STYLES --- */
html, body, #root {
  height: 100%;
  margin: 0;
  background-color: var(--color-background);
}

body {
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

/* --- HERO SECTION STYLES --- */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-sizing: border-box;
  /* Key change: Add padding to account for the footer on all screen sizes */
  padding-bottom: 8rem; 
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1; /* Base layer */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 2; /* Sits on top of the video */
}

.hero-container {
  position: relative;
  z-index: 3; /* Sits on top of the overlay */
  text-align: center;
  padding: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem; /* 64px */
  font-weight: bold;
  line-height: 1;
  color: var(--color-text-primary);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 6rem; /* 96px */
  }
}

/* --- CONTACT BUTTON --- */
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--color-text-primary);
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.contact-button svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-text-primary);
  transition: color 0.3s;
}

.contact-button:hover {
  background-color: var(--color-text-primary);
}

.contact-button:hover svg {
  color: var(--color-background);
}


/* --- FOOTER STYLES --- */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    font-size: 0.875rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 4;
    box-sizing: border-box;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    margin: 0;
    color: var(--color-text-secondary);
}

.footer-right-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-secondary);
}

.footer-location-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 1rem;
    border-right: 1px solid var(--color-text-secondary);
}

.weather-icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--color-text-primary);
}

.footer-right-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-right-links a:hover {
    text-decoration: underline;
    color: var(--color-text-primary);
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
  .hero-section {
    /* This overrides the base padding for a larger adjustment on mobile */
    padding-bottom: 12rem; 
  }

  .hero-title {
    font-size: 4.5rem; /* Increase font size to force wrapping */
    line-height: 1; /* Tighter line height for stacked text */
    max-width: 300px; /* Constrain width to ensure stacking */
    margin-left: auto; /* Center the element */
    margin-right: auto; /* Center the element */
  }

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

  .footer-right-links {
    order: 1;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    width: 100%;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-location-details {
    border-right: none;
    padding-right: 0;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.maintenance-icon {
  width: 4rem; /* 64px */
  height: 4rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem; /* Adds space between icon and title */
  color: var(--color-text-secondary);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 550px; /* Constrains the width for readability */
  margin-top: 1rem; /* Adds space between title and subtitle */
  margin-left: auto;
  margin-right: auto;
}

/* --- RESPONSIVE ADJUSTMENT --- */
@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem; /* 20px */
  }
}