/* ==============================================
   Philip Williams Photography
   style.css
   
   Sections:
   1. Reset & variables
   2. Body
   3. Header
   4. Hero
   5. Buttons
   6. Section common
   7. Albums grid
   8. Archive note
   9. About
   10. Buy me a coffee
   11. Footer
   12. Responsive
   ============================================== */

/* 1. RESET & VARIABLES */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --yellow: #F5C400;
  --green:  #3A7D44;
  --dark:   #1a1a1a;
  --light:  #f9f9f7;
  --mid:    #555;
}

/* 2. BODY
   Soft pastel green/yellow cloud effect using CSS gradients.
   To change colours: adjust the rgba values below.
   To remove: replace with background: var(--light); */
body {
  font-family: Georgia, serif;
  color: var(--dark);
  line-height: 1.7;
  background-color: #f0fff4;
  background-image:
    radial-gradient(at 20% 30%, rgba(220, 252, 231, 0.5) 0px, transparent 50%),
    radial-gradient(at 80% 10%, rgba(254, 252, 232, 0.6) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(240, 253, 244, 0.5) 0px, transparent 50%),
    radial-gradient(at 10% 90%, rgba(254, 249, 195, 0.4) 0px, transparent 50%),
    radial-gradient(at 90% 60%, rgba(220, 252, 231, 0.4) 0px, transparent 50%),
    radial-gradient(at 60% 40%, rgba(254, 252, 232, 0.3) 0px, transparent 40%);
  background-attachment: fixed;
  background-size: cover;
}

/* 3. HEADER
   Slim sticky bar: nav links left, contact right
   To change colours: update background and border-bottom */
header {
  background: #fffbe0;
  border-bottom: 2px solid var(--yellow);
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

nav a {
  font-family: sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  margin-right: 24px;
  letter-spacing: 0.3px;
}
nav a:hover { color: var(--green); }

/* Contact bar: email and phone on right of header */
.contact-bar {
  font-family: sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--mid);
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-bar a { color: var(--mid); text-decoration: none; }
.contact-bar a:hover { color: var(--green); }

/* 4. HERO
   Background image with dark gradient overlay left-to-right
   Logo sits top-right (positioned inline in HTML)
   To change hero height: update height below */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(26,26,26,0.80) 0%,
    rgba(26,26,26,0.45) 55%,
    rgba(26,26,26,0.15) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 1000px;
  width: 100%;
}

.hero-content h2 {
  font-size: 2.4rem;
  color: white;
  line-height: 1.25;
  margin-bottom: 12px;
}
.hero-content h2 span { color: var(--yellow); }

.hero-content p {
  font-family: sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  max-width: 460px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* 5. BUTTONS */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--dark);
  font-family: sans-serif;
  font-weight: bold;
  font-size: 0.88rem;
  padding: 13px 28px;
  border-radius: 4px;
  text-decoration: none;
}
.btn:hover { background: #e0b000; }

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  margin-left: 12px;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* 6. SECTION COMMON */
.section-label {
  font-family: sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 64px 40px;
}

.section-inner h3 { font-size: 1.8rem; margin-bottom: 14px; }

.section-inner > p {
  font-family: sans-serif;
  font-size: 0.95rem;
  color: var(--mid);
  max-width: 680px;
  margin-bottom: 10px;
}

/* 7. ALBUMS GRID
   3 cards across on desktop, stacks on mobile
   To add/remove cards: edit HTML album-grid section */
.albums { background: rgba(255,253,220,0.45); border-top: 1px solid #e8e8e0; border-bottom: 1px solid #e8e8e0; }

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.album-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,253,220,0.7);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.album-card:hover { box-shadow: 0 12px 36px rgba(0,0,0,0.35); transform: translateY(-3px); }

.album-thumb { height: 180px; overflow: hidden; position: relative; }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* Placeholder shown when no thumbnail photo is available */
.album-thumb-placeholder {
  height: 180px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-family: sans-serif;
  font-size: 0.85rem;
  flex-direction: column;
  gap: 8px;
}

/* Yellow "Latest" badge on newest album card */
.album-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--yellow);
  color: var(--dark);
  font-family: sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 20px;
}

.album-info { padding: 16px 18px 20px; }
.album-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.album-info p { font-size: 0.8rem; color: #888; font-family: sans-serif; margin: 0; }
.album-info .view-link { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-family: sans-serif; color: var(--green); font-weight: bold; }

/* 8. ARCHIVE NOTE
   Green-left-bordered note below the album grid */
.archive-note {
  background: rgba(240,247,242,0.7);
  border-left: 4px solid var(--green);
  border-radius: 4px;
  padding: 16px 20px;
  margin-top: 28px;
  font-family: sans-serif;
  font-size: 0.9rem;
  color: var(--mid);
}
.archive-note a { color: var(--green); }

/* 9. ABOUT
   Two-column layout: text left, photo right
   Background is transparent to show body swirl */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 28px;
  align-items: start;
}
.about-grid p { font-family: sans-serif; font-size: 0.95rem; color: var(--mid); margin-bottom: 12px; }
.about-grid a { color: var(--green); }

.about-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.30);
}

/* Norfolk Athletics badge */
.norfolk-badge {
  display: inline-block;
  background: rgba(240,247,242,0.7);
  border: 1px solid var(--green);
  color: var(--green);
  font-family: sans-serif;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* 10. BUY ME A COFFEE
    Green background section with QR code and PayPal button
    To change PayPal link: update href in HTML */
.support {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 64px 40px;
}
.support .section-label { color: rgba(255,255,255,0.6); }
.support h3 { font-size: 1.8rem; color: white; margin-bottom: 14px; }
.support p { color: rgba(255,255,255,0.82); font-family: sans-serif; font-size: 0.95rem; max-width: 520px; margin: 0 auto 28px; }

/* White box around QR code */
.qr-box {
  background: white;
  border-radius: 12px;
  width: 164px;
  height: 164px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.support-note { font-family: sans-serif; font-size: 0.78rem; color: rgba(255,255,255,0.5); margin-top: 14px; }

/* 11. FOOTER */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 28px 20px;
  font-family: sans-serif;
  font-size: 0.78rem;
  border-top: 4px solid var(--yellow);
}
footer a { color: var(--yellow); text-decoration: none; }

/* 12. RESPONSIVE
    Mobile: single column, hidden nav, smaller hero */
@media (max-width: 680px) {
  header { padding: 10px 20px; }
  .contact-bar { display: none; } /* too cramped on small screens */
  .hero { height: 300px; }
  .hero-content { padding: 0 24px; }
  .hero-content h2 { font-size: 1.5rem; }
  .section-inner { padding: 40px 20px; }
  .about-grid { grid-template-columns: 1fr; }
  nav a { margin-right: 14px; font-size: 0.8rem; }
  .hero-logo { width: 80px !important; height: 80px !important; top: 10px !important; right: 12px !important; }
}
