/* ============================================================
   STYLES.CSS — My Site
   Edit this file in Dreamweaver's CSS Designer panel.
   All colours are defined as variables at the top —
   change one value here to update it everywhere on the page.
   ============================================================ */


/* ============================================================
   COLOUR VARIABLES — edit here to retheme the whole site
   ============================================================ */
:root {
  --navy-dark:   #0a1540;   /* page background, footer base       */
  --navy-mid:    #0f2060;   /* card labels, header, button fill   */
  --navy-bright: #1a3a8a;   /* card label gradient highlight      */
  --gold:        #c8a84b;   /* gold accent line & button border   */
  --white:       #ffffff;
  --off-white:   #d8e4f8;   /* body text on dark backgrounds      */
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Georgia, serif;
  background-color: var(--navy-dark);
  color: var(--white);
  max-width: 1050px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

/* Replace images/hero.jpg in index.html to change this image */
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark gradient overlay — adjust rgba values to lighten/darken */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(26, 58, 138, 0.35) 0%,
    rgba(10, 21, 64, 0.72)  100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

/* Curved arc at the bottom of the hero */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -5%;
  width: 110%;
  height: 65px;
  background: var(--navy-dark);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-overlay h1 {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-overlay p {
  font-size: 0.97rem;
  color: var(--off-white);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--navy-mid);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  transition: background 0.2s;
}
.btn-primary:hover {
  background: var(--navy-bright);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 28px;
  border-radius: 50px;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-dark);
}


/* ============================================================
   INTRO — "What we do" section
   ============================================================ */
.intro {
  text-align: center;
  padding: 56px 24px 40px;
  background: var(--navy-dark);
}

.intro h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* Gold underline rule beneath the heading */
.intro h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

.intro p {
    font-size: 9.rem;
    color: var(--off-white);
    opacity: 0.85;
    font-family: "Segoe UI", Georgia, serif;
    font-size: 16px;
}


/* ============================================================
   PROJECTS GRID — 3 columns × 3 rows
   Change grid-template-columns to alter the number of columns:
     2 columns → repeat(2, 1fr)
     4 columns → repeat(4, 1fr)
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 18px 64px;
  background: var(--navy-dark);
}


/* ============================================================
   CARD
   ============================================================ */
.card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: var(--navy-mid);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Image wrapper — keeps portrait aspect ratio, full image visible */
.card-img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* object-fit: contain = NO cropping, full image always visible */
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Gold-topped navy label bar at the bottom of each card */
.card-label {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-bright) 100%);
  border-top: 2px solid var(--gold);
  padding: 14px 16px 16px;
}

.card-label h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.card-label p {
  font-size: 0.78rem;
  color: var(--off-white);
  opacity: 0.85;
}

/* Makes the entire card clickable */
.card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(to bottom, var(--navy-mid), var(--navy-dark));
  border-top: 1px solid rgba(200, 168, 75, 0.3);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.82rem;
  color: var(--off-white);
  opacity: 0.75;
}


/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 700px) {
  .hero-overlay h1 { font-size: 2rem; }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .projects-grid   { grid-template-columns: 1fr; }
}
