/*
  Custom styles for C.hill Air
  This stylesheet defines a clean, modern layout for a drone services business.
  It uses responsive grids and flexbox to ensure the site looks great on
  desktops, tablets and phones. Adjust the color variables below to tweak
  the palette.
*/

/* CSS Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

/* CSS variables for easy theming */
:root {
  --primary-color: #0f4c81; /* dark blue used for headings and accents */
  --accent-color: #1e9bfa; /* bright blue used for buttons and highlights */
  --light-bg: #f4f8fc;    /* light background for cards and sections */
  --heading-color: #102a43; /* deep navy for headings */
  --max-width: 1200px;
}

/* Container utility */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color);
  user-select: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-menu li:not(:first-child) {
  margin-left: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--heading-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--accent-color);
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: -1;
}

.hero-content {
  text-align: center;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-content .subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

.primary-btn:hover {
  background-color: #0d81d4;
}

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

.outline-btn:hover {
  background-color: var(--accent-color);
  color: #ffffff;
}

/* Sections */
.section {
  padding: 5rem 0 4rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.service-item {
  background-color: var(--light-bg);
  padding: 2rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.service-item h3 {
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.service-item p {
  font-size: 0.9rem;
  color: #555;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* Style locally hosted videos consistently with embedded iframes */
.video-wrapper video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: none;
  display: block;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background-color: var(--light-bg);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.package-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.package-price span {
  font-size: 0.8rem;
}

.package-features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  color: #555;
}

.package-features li {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.package-features li::before {
  content: '\f111';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: var(--accent-color);
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 0.4rem;
}

/* About */
.about-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
}

.about-content p {
  margin-bottom: 1rem;
  color: #555;
  font-size: 0.95rem;
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: flex-start;
}

.contact-form {
  background-color: var(--light-bg);
  padding: 2rem 1.5rem;
  border-radius: 8px;
}

.contact-form .form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--heading-color);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
}

.contact-details h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
}

.contact-details p {
  margin-bottom: 0.5rem;
  color: #555;
}

.social-links a {
  font-size: 1.4rem;
  margin-right: 1rem;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
}

.footer-container p {
  margin-bottom: 0.3rem;
}

.credits {
  font-size: 0.8rem;
  color: #e0e8f0;
}

/* Responsive navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li {
    margin: 1rem 0;
    text-align: center;
  }

  .hamburger {
    display: block;
  }
}