@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');

/* Costaline – place your font file at assets/fonts/Costaline.woff2 (and .woff) */
@font-face {
  font-family: 'Costaline';
  src: url('/assets/fonts/Costaline.woff2') format('woff2'),
       url('/assets/fonts/Costaline.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Color Palette */
:root {
  --color-dark-teal:  #1F3937;
  --color-warm-cream: #F1DEC3;
  --color-black:      #000000;
}

body {
  background-color: var(--color-warm-cream);
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--color-black);
}

* {
  font-family: 'Inter', sans-serif;
  color: var(--color-black);
}

/* Header Styles */

.site-header {
  background-color: var(--color-warm-cream); /* Adjust banner background color */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  padding: 1rem 0;
}

.site-header .header-container {
  display: flex;
  justify-content: space-between; /* Pushes logo left, nav right */
  align-items: center;            /* Centers items vertically */
  max-width: 1200px;              /* Keeps content from stretching too far */
  height: 110px;              /* Restricts header height */
  margin: 0 auto;                 /* Centers the container on the screen */
  padding: 0 20px;
}

.site-header .header-logo .logo-img {
  max-height: 50px; /* Restricts logo size */
  width: auto;
  display: block;
}

.site-header .header-nav .nav-list {
  display: flex;
  gap: 2rem;       /* Space between the two links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .header-nav .nav-link {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.site-header .header-nav .nav-link:hover {
  color: #0056b3; /* Hover state for links */
}

.page-content {
  padding: 2rem 0;
  text-align: center;
}

.home-page,
.about-page,
.portfolio-page {
  background-color: var(--color-warm-cream);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.about-text {
  flex: 1 1 0;
  min-width: 0;
}

.about-text h1 {
  margin-top: 0;
}

.about-image {
  flex: 0 1 280px;
  min-width: 120px;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 480px) {
  .about-container {
    flex-direction: column;
    padding: 2rem 1.25rem;
  }

  .about-image {
    order: -1;
    flex: none;
    width: 60%;
    max-width: 220px;
  }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
  /* Match the homepage cream background */
  background-color: var(--color-warm-cream);
  padding: 4rem 2rem;
  color: #333333;
  /* Default font for the footer (sans-serif for the small text and links) */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  
  /* Flexbox layout to split the brand section and nav section */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 3rem;
}

/* ==========================================================================
   Left Side: Branding & Bio
   ========================================================================== */

.footer-brand-section {
  display: flex;
  flex-direction: column;
  max-width: 350px;
}

.brand-name {
  margin: 0 0 1.5rem 0;
  font-weight: 300; /* Keeps the text thin */
  font-size: 2.2rem;
  line-height: 1.1;
  color: #4A4A4A; /* A slightly softer dark gray/brown */
}

.name-primary {
  /* Update this to the actual serif font you are using */
  font-family: "Playfair Display", "Georgia", serif; 
}

.name-secondary {
  /* Update this to the actual serif font you are using */
  font-family: "Playfair Display", "Georgia", serif;
  font-style: italic;
}

.brand-subtitle {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555555;
  margin-top: 0;
  margin-bottom: 2.5rem; /* Pushes the social icons down */
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-link {
  display: inline-block;
  text-decoration: none;
}

.social-icon {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.6; /* Matches the slightly muted look in the mockup */
  transition: opacity 0.2s ease;
}

.social-link:hover .social-icon {
  opacity: 1; /* Brightens up when hovered */
}

/* ==========================================================================
   Right Side: Navigation Columns
   ========================================================================== */

.footer-nav-section {
  display: flex;
  gap: 4rem; /* Wide spacing between the columns */
  flex-wrap: nowrap;
  margin-left: auto; /* Push nav columns group to the right side */
  justify-content: flex-end;
}

.footer-column {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.column-title {
  font-size: 1rem;
  font-weight: 600;
  color: #222222;
  margin: 0 0 1.5rem 0;
}

.column-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem; /* Spacing between individual links */
}

.column-links a {
  text-decoration: none;
  color: #666666; /* Muted gray for the links */
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.column-links a:hover {
  color: #000000; /* Darkens on hover */
}

/* ==========================================================================
   Responsive Styles (Mobile Devices)
   ========================================================================== */

@media (max-width: 850px) {
  .footer-container {
    flex-direction: column;
    gap: 4rem; /* Larger gap between top and bottom sections on mobile */
  }

  .footer-nav-section {
    gap: 2.5rem;
    width: 100%;
    margin-left: 0;
    justify-content: space-between; /* Spreads columns evenly on tablets */
  }
}

@media (max-width: 500px) {
  .footer-nav-section {
    flex-direction: column; /* Stacks the link columns vertically on small phones */
    gap: 2rem;
  }
}

/* ==========================================================================
   Home Page – Portfolio Grid (Frames 14–21)
   ========================================================================== */

.home-portfolio {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0rem 2rem 4rem;
}

.portfolio-page-header {

  margin-bottom: 2rem;
  text-align: left;
}

.portfolio-page-title {
  font-family: 'Costaline', 'Lora', sans-serif;
  font-size: 1.85rem;
  font-weight: normal;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
}

.portfolio-page-title span {
  display: block;
}

/* 4-column grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.5rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
}

.portfolio-card-link {
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.portfolio-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background-color: #d9cfc4; /* visible placeholder until images are added */
  transition: transform 0.25s ease;
}

.portfolio-card-link:hover .portfolio-card-image {
  transform: scale(1.03);
}

.portfolio-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.7rem 0 0.35rem;
  color: var(--color-black);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.portfolio-card-desc {
  font-size: 0.78rem;
  line-height: 1.55;
  color: #555555;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* Responsive – 2 columns on tablet */
@media (max-width: 850px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive – 1 column on mobile */
@media (max-width: 500px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}