/* Baker Photo Co. - Master Stylesheet
   Branding: Retro Sunset (Orange, Red, Cream, Navy)
*/

:root {
  /* Colors pulled from your logo */
  --bg-dark: #000000;
  --secondary-bg: #111111;
  --logo-cream: #f4edd4;
  --logo-orange: #f58220;
  --logo-red: #e6332a;
  --logo-blue: #6eb4d1;
  
  --font-main: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

/* 1. Global Reset & Base Styles */
* {
  box-sizing: border-box; /* Fixes alignment issues on live servers */
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--logo-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  animation: fadeIn 1s ease-in; /* Smooth page entrance */
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Accessibility: Clear focus for keyboard navigation */
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px dashed var(--logo-orange);
  outline-offset: 4px;
}

/* 2. Header & Navigation (Centered Logo) */
header {
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center;
  padding: 3rem 1rem;     
  background-color: var(--secondary-bg);
  border-bottom: 3px solid var(--logo-orange);
}


.logo-container img {
  height: 250px;           /* Increased from 150px to 250px */
  width: auto;             /* Keeps the proportions correct */
  max-width: 90vw;         /* Prevents it from going off-screen on mobile */
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
  display: block;
}


.logo-container img:hover {
  transform: scale(1.03);
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: var(--logo-cream);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--logo-orange);
}

/* 3. Hero Section */
.hero {
  text-align: center;
  padding: 10rem 2rem;
  background: linear-gradient(180deg, rgba(230,51,42,0.15) 0%, rgba(0,0,0,1) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin: 0;
  color: var(--logo-cream);
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 1.5rem auto;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: var(--logo-orange);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: var(--font-main);
  text-transform: uppercase;
}

.cta-button:hover {
  background-color: var(--logo-red);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* 4. Portfolio Gallery (Centered & Uniform) */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  justify-content: center; 
  gap: 25px;
  padding: 5% 5% 10% 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1 / 1; /* Perfectly square grid */
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(15%);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
  outline: 2px solid var(--logo-orange);
  outline-offset: 12px;
}

/* 5. Contact Section & Form */
.contact-section {
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  background: var(--secondary-bg);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid #222;
  margin-top: 2rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--logo-orange);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #000;
  border: 1px solid #444;
  color: var(--logo-cream);
  font-family: var(--font-main);
  border-radius: 4px;
  font-size: 1rem;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--logo-orange);
}

/* 6. Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--secondary-bg);
  border-top: 1px solid #222;
}

.footer-links {
  margin-top: 1.5rem;
}

/* Social Icon Styles */
.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: transform 0.2s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    text-decoration: none; /* Keeps the line from appearing under the icon */
}

.social-icon {
  width: 24px;  /* Perfect size for footers */
  height: 24px;
  /* This filter turns a black icon into your brand's orange color */
  filter: invert(56%) sepia(87%) saturate(1633%) hue-rotate(346deg) brightness(101%) contrast(93%);
}

.separator {
    color: #444;
    font-size: 1.2rem;
}

/* Session Page Specifics */
.session-hero {
    padding: 6rem 2rem; /* Shorter than the main home hero */
    background: linear-gradient(180deg, rgba(110, 180, 209, 0.1) 0%, rgba(0,0,0,1) 100%);
    border-bottom: 1px solid #222;
}

.session-hero h1 {
    font-size: 3rem;
    color: var(--logo-blue); /* Uses your logo's blue for session titles */
}

/* Session Menu Styles */
.sessions-menu {
    padding: 5rem 5%;
    text-align: center;
    background-color: var(--secondary-bg);
}

.sessions-menu h2 {
    color: var(--logo-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* 1. The Grid: We use '300px' instead of 'minmax' to prevent stretching */
.session-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px); /* Fixed width for every card */
    justify-content: center; /* Centers the whole group of cards */
    gap: 30px;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 2. The Card: We add a max-height to ensure no card "grows" taller */
.session-card {
    position: relative;
    width: 350px;           /* Exact width */
    height: 197px;          /* Exact height (based on 16:9 ratio) */
    overflow: hidden;
    border-radius: 8px;
    display: block;
    background-color: #111;
}

/* 3. The Image: Locked to the container size */
.session-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* Crops any image to fit the 350x197 box */
    display: block;
    transition: transform 0.5s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-overlay h3 {
    color: var(--logo-cream);
    margin: 0;
    text-transform: uppercase;
}

.card-overlay span {
    color: var(--logo-orange);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Hover Effects */
.session-card:hover img {
    transform: scale(1.1);
}

.session-card:hover .card-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.3); /* Becomes clearer on hover */
}


