/* assets/css/styles.css */

/* make html/body full-height and flex containers */
html, body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  margin: 0;
}

/* let main grow to fill available space */
main {
  flex: 1;
}

/* 1. CSS Variables & Typography */
:root {
  /* Colors (HEX) */
  --white: #fff;
  --black:       #060100;
  --lion:        #C89C58;
  --black-2:     #000000;
  --dark-cyan:   #268889;
  --gunmetal:    #07201F;

  /* Fonts */
  --font-sans:   'Helvetica Neue', Arial, sans-serif;
  --font-serif:  'Georgia', serif;
}

/* 2. Reset & Box-Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 3. Base Styles */
body {
  font-family: var(--font-sans);
  color: var(--black-2);
  line-height: 1.6;
  background: #fff;
}

a {
  color: var(--dark-cyan);
  text-decoration: none;
}

ul {
  list-style: disc inside;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--black);
  margin-bottom: 1rem;
}

/* 4. Utility Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  
}

/* 5. Header & Navigation */
header {
  background: var(--white);
  border-bottom: 1px solid black;
}

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

.logo img {
  max-height: 120px;
  max-width: 120px;
  margin-right: 1rem;
  margin-top: 1rem;
}

nav {
  flex: 1;
}


nav ul {
  display: flex;
  justify-content: center;   /* center navbar items */
  gap: 2rem;                 /* appropriate space between items */
  flex-wrap: wrap;
}
nav ul,
nav ul li,
.submenu,
.submenu li {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav a {
  color: var(--dark-cyan);
  font-weight: bold; /* top-level nav bold */
  padding: .5rem 1rem;
  position: relative;
  display: inline-block;
}

nav a.active,
nav a:hover {
  color: var(--lion);
  background: none;
}

/* Submenu links should NOT be bold */
.submenu a {
  font-weight: normal;
}

/* 6. Hero Section */
.hero {
  background: var(--dark-cyan);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: .5rem;
}
.hero p {
  font-size: 1.2rem;
}

/* 7. Section Styling */
section {
  padding: 7rem 0;
  background: linear-gradient(225deg, #0c192b, #14aaa0);

}

section h3{
  color: white;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--lion);
}

section p {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--white);
}
section ul {
  max-width: 800px;
  margin: 0 auto;
}
section ul li {
  margin-bottom: .75rem;
  padding-left: .5rem;
  color: var(--white);

}/* ===== Services (expand on hover) ===== */
/* ===== Services (expand on hover) with site colors ===== */
/* ===== Services (cards with varied cyan shades) ===== */
#services {
  background-color: var(--white);
  color: var(--black-2);
  padding: clamp(48px, 6vw, 80px) 0;
  background: linear-gradient(225deg, #0c192b, #14aaa0);

}

#services h2 {
  margin: 0 0 20px;
  color: var(--lion);
}

/* Grid layout */
/* Expand only hovered card */
.service-card {
  position: relative;
  display: block;
  border-radius: 16px;
  padding: 18px 18px 16px;
  color: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease;
  will-change: transform;
  background: linear-gradient(45deg, #0d1d30, #0e3744);
}

.service-card:is(:hover, :focus-visible) {
  transform: scale(1.05); /* expand only this card */
  z-index: 2; /* ensure it appears above others while expanded */
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Keep other cards still (no container shift) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2.4vw, 24px);
  align-items: start; /* prevents vertical shift */
}



/* Hover/focus effect */
.service-card:is(:hover, :focus-visible) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

/* Accent bar on hover */
.service-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lion) 0%, var(--white) 100%);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity .25s ease, transform .25s ease;
}
.service-card:is(:hover, :focus-visible)::after {
  opacity: 1;
  transform: translateY(0);
}

/* Icon styling */
.service-front {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  max-height: 150px;
}

.service-front .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background-color: whitesmoke;
  border-radius: 10px;
}

.service-front .icon img {
  width: 26px;
  height: 26px;
}

/* Titles */
.service-front h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--white);
}

/* Back content reveal */
.service-back {
  margin-top: 10px;
  color: var(--white);
  font-size: .95rem;
  line-height: 1.5;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    max-height .35s ease,
    opacity .25s ease,
    transform .35s ease;
}
.service-card:is(:hover, :focus-visible) .service-back {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 900px) {
  .service-card:is(:hover, :focus-visible) .service-back {
    max-height: 220px;
  }
}


@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after,
  .service-back {
    transition: none;
  }
}


/* 9. Contact Form */
form {
  max-width: 600px;
  margin: 0 auto;
}
form input,
form textarea {
  width: 100%;
  padding: .75rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gunmetal);
  border-radius: 4px;
  font-size: 1rem;
}
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--dark-cyan);
}
form button {
  display: inline-block;
  background: var(--lion);
  color: #fff;
  border: none;
  padding: .75rem 2rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
form button:hover {
  background: var(--black);
}

/* 10. Footer */
footer {
  background: var(--gunmetal);
  color: #fff;
  text-align: center;
  padding: 2rem 0;
  font-size: .9rem;
}
footer p + p {
  margin-top: .5rem;
}

.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 200px;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.submenu li {
  display: block;
}

.submenu a {
  color: var(--black-2);
  padding: 0.75rem 1rem;
  display: block;
  white-space: nowrap;
}

.submenu a:hover {
  color: var(--lion);
  background-color: #f9f9f9;
}

/* Show submenu on hover */
.has-submenu:hover .submenu {
  display: block;
}

/* Media Page */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.media-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.media-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.media-info {
  padding: 1rem;
}

.media-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--dark-cyan);
  font-family: var(--font-serif);
}

.media-info p {
  font-size: 0.95rem;
  color: var(--black-2);
  line-height: 1.4;
}

.media-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.list {
  list-style: none;
  padding: 0;
  margin: 2rem auto;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1.5rem;
}

.list li img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.list li h3 {
  margin: 0;
  color: var(--white);
}

.list li p {
  margin-top: 0.5rem;
  color: var(--black-2);
}

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 20px;
  background-color: #444;
  color: #fff;
  font-size: 14px;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  transform: translateY(20px);
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast.success {
  background-color: #2ecc71;
}

.toast.error {
  background-color: #e74c3c;
}


/* 11. Responsive Tweaks */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul {
    justify-content: center;
    margin-top: .5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
