/* ====================================
   Main Stylesheet for By Traci Website
   Author: Traci & Evan
   Last Updated: Oct 2025
   ==================================== */


/* ========== FONT SETUP ========== */
@font-face {
  font-family: 'Versailles';
  src: url('assets/fonts/mainFont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --dark-pastel-blue: #779ecb;
  --space-cadet: #1d2951;
  --white: #ffffff;
  --grainsboro: #dcdcdc;
  --lapis-lazuli: #26619c;
  --ucla-blue: #536895;
  --baby-blue-eyes: #a1caf1;
  --litle-blue-boy: #6ca0dc;
  --admiral-blue: #2c3863;
  --delft-blue: #1f305e;
  --ford-blue: #2c3968;
  --oxford-blue: #002147;
  --blue-spruce: #607077;
  --light-slate-gray: #778899;
  --slate-gray: #708090;
  --silver: #c0c0c0;
  --lavender-gray: #c4c3d0;
  --gray: #808080;
  --overlay-dark: rgba(44, 62, 80, 0.6);
}

/* ========== BASE STYLES ========== */
body {
  font-family: 'Versailles', serif;
  font-size: 1.1rem;
  background-color: var(--white);
  color: var(--ford-blue);
  margin: 0;
  padding: 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding: 1em;
}

/* ========== HEADER ========== */
.site-header {
  position: relative;
  height: 250px;
  background-image: url('assets/images/blue-floral.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  border-bottom: 4px solid var();
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 1em;
  position: relative;
  overflow: hidden;  /*prevents Logo from spilling out*/
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--overlay-dark);
  z-index: 0;
}

.site-header .branding {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  padding-top: 1em;
  max-height: 100%;
  overflow: hidden;
  justify-content: center;
}

.site-header .Logo {
  max-height: 100px !important;   /* Shrinks the vertical size */
  width: auto !important;         /* Keeps proportions */
  max-width: 100% !important; 
  display: block;
  margin: 0 auto;      /* Centers it */
  object-fit: contain;   /* Prevents distortion */
}

.site-header .Logo:hover {
  transform: scale(1.05);
}


/* ========== NAVIGATION ========== */
.main-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  visibility: visible;
  opacity: 1;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1em;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-weight: bold;
  transition: color 0.3s;
}

.main-nav a {
  position: relative;
  z-index: 101; 
  pointer-events: auto;
}

.main-nav a,
.btn-primary {
  color: var(--white);
}

.main-nav a:hover {
  color: var(--ford-blue);
}

/* ========== HERO SECTION ========== */
.hero {
  background-color: var(--white);
  padding: 2em 0;
  text-align: center;
  border-bottom: 4px solid var();
}

.hero-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--ford-blue);
  margin-top: 1rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  padding: 0.5em 1.5em;
  background: var(--baby-blue-eyes);
  color: var(--ford-blue);
  text-decoration: none;
  border-radius: 5px;
  margin-top: 1em;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
  background-color: var(--dark-pastel-blue);
  transform: scale(1.05);
}

/* ========== SERVICE CARDS ========== */
.services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1em;
}

.service-card {
  background: var(--dark-pastel-blue);
  padding: 1em;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.service-card:hover {
  background: var(--ford-blue);
  transform: translateY(-4px);
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
}

.gallery-grid img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* ========== FOOTER ========== */
footer {
  position: relative;
  height: 200px;
  background-image: url('assets/images/blue-floral.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 1em;
  border-top: 4px solid var(--);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--overlay-dark);
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

.site-footer::after {
  content: " © 2025 By Traci. All rights reserved.";
  display: block;
  margin-top: 1em;
  color: var(--white); 
  font-size: 0.9em;
  font-weight: normal;
  z-index: 2;
}

.site-footer .copyright {
  text-align: center;
  font-size: 0.9em;
  color: var(--white);
  margin-top: 1em;
}

.site-footer {
  background-color: rgba(255, 255, 255, 0.8);
  padding: 2em 1em;
  text-align: center;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links li {
  margin-bottom: 0.5em;
}

.contact-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.contact-links a:hover {
  color: var(--ford-blue);
  text-decoration: underline;
}

.contact-links a i {
  transition: transform 0.3s ease;
}

.contact-links a:hover i {
  transform: scale(1.2);
}

/* ========== RESPONSIVE ========== */
/* ===== MOBILE MENU FIX ===== */
#menu-toggle {
  position: absolute;
  left: -9999px;
}

.menu-icon {
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  background: transparent;
  border: 0;
  padding: 0.5em 0.7em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.main-nav {
  position: relative;
  z-index: 1000;
}

@media (max-width: 768px) {
  /* Hide menu by default */
  .main-nav ul {
    display: none;
    flex-direction: column;
    background: transparent;
    padding: 1em;
    margin: 0;
    border-radius: 10px;
  }

  /* ✅ More resilient selector — works even if other elements are in between */
  #menu-toggle:checked ~ .main-nav ul {
    display: flex;
  }

  /* Keep button tappable on small screens */
  .menu-icon {
    padding: 0.4em 0.6em;
    font-size: 1.1em;
  }

  @media (max-width: 360px) {
    .menu-icon span { display: none; }
  }
}

/* Prevent any overlay or banner from blocking taps */
.site-header::before,
.hero::before,
.banner::before {
  pointer-events: none;
}


 /* ===== GALLERY (drop this anywhere above your @media rules, or right here) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 220px;     /* adjust taller/shorter as you like */
  object-fit: cover; /* prevents squish */
  display: block;
}

.gallery-item p { margin: 10px 12px 14px; }

/* Wider screens: add columns */
@media (min-width: 680px)  { 
  .gallery-grid { grid-template-columns: repeat(3, 1fr); } 
}
@media (min-width: 1024px) { 
  .gallery-grid { grid-template-columns: repeat(4, 1fr); } 
}

/* ===== GENERAL MOBILE TWEAKS (safe replacements) ===== */
@media (max-width: 768px) {
  .container { width: 95%; }

  .btn-primary { width: 80%; }

  .service-card { font-size: 0.95em; }

  /* Don’t set fixed heights on header/footer; use padding instead */
  .site-header { height: auto; padding: 14px 0; }
  footer { height: auto; padding: 18px 0 28px; }
}
