/*
 * style.css
 * This file contains all the custom CSS rules for the "Stitched by Steph" website.
 * Comments are provided to help you easily understand and modify the design.
 */

/* =========================================================================
   1. GLOBAL STYLES & VARIABLES
   -------------------------------------------------------------------------
   These styles apply across the entire website.
   Use CSS Variables (prefixed with --) to easily change main colors and fonts.
   ========================================================================= */

:root { 
    /* --- COLOR PALETTE (Pastel Tones) --- */
    --primary-color: #B2EBF2;    /* Main interactive elements, buttons, highlights */
    --secondary-color: #D1C4E9;  /* Secondary interactive elements, accents */
    --accent-color: #FFCCBC;     /* For small highlights or special sections */
    --text-dark: #424242;        /* Darker text for readability */
    --text-light: #616161;       /* Lighter text for less emphasis */
    --bg-light: transparent;     /* Transparent now (was off-white) */
    --hover-color: #80DEEA;      /* Button and link hover color */

    /* --- FONT STYLES --- */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    /* --- SPACING & SIZING --- */
    --border-radius: 8px;
    --max-width: 1200px;

    /* --- NEW HEADER & TRANSITION VARIABLES --- */
    --header-height: 72px;              /* header height for layout spacing */
    --nav-bg: rgba(231, 220, 255, 0.92); /* soft lavender band behind nav/logo */
    --transition-speed: 0.3s ease;      /* smooth transitions for hover/scroll */
    --shadow-soft: 0 4px 10px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Basic Reset & Box Sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font); /* Apply body font */
    color: var(--text-dark); /* Apply default text color */
    line-height: 1.6; /* Improve readability of text */
    background-color: transparent; /* Fallback background color */
    /* --- SEAMLESS TILEABLE BACKGROUND ART --- */
    /* To change the background image:
       1. Place your new tileable image in the `assets/images/` folder.
       2. Update the `url()` path below to match your new image's filename.
       e.g., url('../images/my_new_tile.png')
       Make sure it's actually tileable for a seamless look! */
    background-image: url('../images/background_tile.png');
    background-repeat: repeat; /* This ensures the image tiles across the background */
    background-attachment: fixed; /* Keeps the background in place while scrolling */
}

/* Container for centering content */
.container {
    max-width: var(--max-width);
    margin: 0 auto; /* Centers the container */
    padding: 0 20px; /* Adds padding on sides for smaller screens */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font); /* Apply heading font */
    color: var(--text-dark); /* Apply heading text color */
    margin-bottom: 0.8em;
    line-height: 1.2;
}

h1 { font-size: 2.8em; } /* Larger for main page titles */
h2 { font-size: 2.2em; } /* Section titles */
h3 { font-size: 1.8em; } /* Sub-section titles */

p {
    margin-bottom: 1em; /* Spacing between paragraphs */
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: var(--text-dark); 
}

img {
    max-width: 100%; /* Ensures images don't overflow their containers */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra space below image if it's in a block context */
}

/* Buttons */
.btn {
    display: inline-block; /* Allows padding and width */
    padding: 12px 25px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transitions */
    margin-right: 15px; /* Spacing between multiple buttons */
    margin-bottom: 15px; /* For stacking buttons on small screens */
    white-space: nowrap; /* Prevents button text from wrapping */
}

.btn:last-child {
    margin-right: 0; /* No right margin for the last button */
}

.primary-btn,
.primary-btn:hover,
.secondary-btn,
.secondary-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-dark);
  border: 2px solid var(--primary-color);
}



/* =========================================================================
   2. HEADER & NAVIGATION
   -------------------------------------------------------------------------
   Styling for the website's top section including logo and menu.
   ========================================================================= */

header {
    background-color: var(--nav-bg); /* Pastel band background */
    backdrop-filter: blur(6px); /* Soft glassy effect */
    -webkit-backdrop-filter: blur(6px); /* Safari support */
    padding: 15px 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* Softer, deeper shadow */
    position: sticky; /* Keeps header visible on scroll */
    top: 0;
    z-index: 1000; /* Ensures header stays above content */
}

header .container {
    display: flex; /* Arranges items horizontally */
    justify-content: space-between; /* Spreads items evenly */
    align-items: center; /* Vertically centers items */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.logo img {
    height: 60px; /* Adjust logo height */
    width: auto;
    border-radius: 50%; /* If you want a round logo */
    object-fit: cover; /* Ensures image covers area without distortion */
}

nav ul {
    list-style: none; /* Remove bullet points from list */
    display: flex; /* Arrange menu items horizontally */
}

nav ul li {
    margin-left: 30px; /* Space between menu items */
}

nav ul li a {
    color: var(--text-dark); /* Menu item text color */
    font-weight: 600;
    padding: 5px 0;
    position: relative; /* For underline effect */
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color); /* Underline color */
    transition: width 0.3s ease; /* Smooth transition for underline */
}

nav ul li a:hover::after,
nav ul li a.active::after { /* 'active' class for current page */
    width: 100%;
}

.social-links {
    display: flex;
    align-items: center;
}

.social-links a {
    margin-left: 15px; /* Space between social icons */
    display: inline-flex; /* For precise centering of icon */
}

.social-links img {
    height: 24px; /* Size of social media icons */
    width: 24px;
    filter: grayscale(100%); /* Make icons grayscale initially */
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.social-links img:hover {
    filter: grayscale(0%); /* Colorize on hover */
    opacity: 1;
}

/* =========================================================================
   3. MAIN SECTIONS & CONTENT LAYOUT
   -------------------------------------------------------------------------
   Styling for various content blocks like hero sections, galleries, etc.
   ========================================================================= */

section {
    padding: 80px 0; /* Vertical spacing for all sections */
    text-align: center; /* Center content by default */
}

section:nth-child(even) {
   background-color: transparent; /* Slightly different background for alternating sections */
}

/* Hero Section (Homepage Top Banner) */
.hero-main {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  padding: calc(110px + var(--header-height)) 0 150px;
}


.hero-main .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f5f5f5; /* optional backdrop fill */
  object-position: center 32%; /* keeps face/logo in focus */
  z-index: 0;
  filter: brightness(0.88); /* slightly dim for contrast */
}

.hero-main .hero-content {
    max-width: 800px;
    color: var(--text-dark);
    text-shadow: none;
    z-index: 1;
}

.hero-main h1 {
    font-size: 4em;
    color: var(--text-dark);
    margin-bottom: 0.2em;
}

.hero-main p {
    font-size: 1.3em;
    color: var(--text-dark);
    margin-bottom: 2em;
}

/* Page Hero (For interior pages like About, Gallery, etc.) */
.page-hero {
    background-color: var(--primary-color);
    color: var(--text-dark);
    padding: 60px 0;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.05);
}

.page-hero h1 {
    color: var(--text-dark);
    font-size: 3em;
}
.page-hero p {
    font-size: 1.1em;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: center;
    align-items: flex-start; /* Align items to the top */
    text-align: left; /* Text aligns left within blocks */
    gap: 40px; /* Space between flex items */
}

.about-portrait {
    width: 300px; /* Fixed width for portrait */
    height: 300px; /* Fixed height */
    border-radius: 50%; /* Make it round */
    object-fit: cover; /* Ensures image fills without distortion */
    border: 5px solid var(--secondary-color); /* Frame around portrait */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-content .text-block {
    flex: 1; /* Allows text blocks to grow */
    min-width: 300px; /* Minimum width before wrapping */
    max-width: 600px;
}

/* Gallery Grids (Featured and Full) */
.gallery-grid, .gallery-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid columns */
    gap: 30px; /* Space between grid items */
    margin-top: 40px;
    margin-bottom: 40px;
}

.gallery-item, .gallery-item-full {
    background-color: transparent;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden; /* Hides parts of image if it overflows */
    text-align: left;
}

.gallery-item img, .gallery-item-full img {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover; /* Ensures image covers area */
    border-bottom: 1px solid #eee;
}

.gallery-item h3, .gallery-item-full h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 20px;
    font-size: 1.5em;
    color: var(--text-dark);
}

.gallery-item p, .gallery-item-full p {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: var(--text-light);
}

/* Testimonials */
.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
   background-color: transparent;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes name to bottom */
}

.testimonial-item blockquote {
    font-style: italic;
    color: var(--text-dark);
    font-size: 1.1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows blockquote to take available space */
}

.testimonial-item .customer-name {
    font-weight: bold;
    color: #333333; /* Charcoal color for readability */
    font-size: 1em;
}

/* FAQ Section (Accordion Style) */
.faq-content {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
   background-color: transparent;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden; /* Hides overflowing content */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 20px 25px;
    margin: 0;
    font-size: 1.2em;
    cursor: pointer; /* Indicates it's clickable */
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
}

.faq-question::after {
    content: '+'; /* Plus sign for closed state */
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-'; /* Minus sign for open state */
    transform: rotate(0deg); /* No rotation needed for minus */
}

.faq-answer {
    padding: 0 25px;
    max-height: 0; /* Initially hidden */
    transition: max-height 0.5s ease-out, padding 0.5s ease-out; /* Smooth slide effect */
    overflow: hidden; /* Hide overflow during transition */
    background-color: #fcfcfc;
}

.faq-answer.open {
    max-height: 300px; /* Adjust as needed for max answer length */
    padding: 20px 25px;
}

.faq-answer p {
    margin-bottom: 0; /* No bottom margin inside faq answer */
    color: var(--text-light);
}

/* Contact Page */
.contact-info {
    text-align: left;
    max-width: 900px;
    margin: 40px auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.method-item {
   background-color: transparent;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.method-item h2 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 15px;
}

.method-item p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.method-item .email-display {
    font-weight: bold;
    color: var(--text-dark);
    margin-top: 15px;
    font-size: 1.1em;
}

.social-links-contact {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-links-contact a img {
    height: 32px; /* Larger icons for contact page */
    width: 32px;
}

/* Contact Form (if enabled) */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 20px;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
    font-size: 1em;
    color: var(--text-dark);
    background-color: #FFF;
}

.contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
}

.contact-form button {
    align-self: flex-start; /* Align button to the left */
    margin-right: 0; /* Remove extra button margin */
}

.form-note {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
}

/* Embedded Video */
.video-container {
    margin-top: 60px;
    text-align: center;
}

.responsive-video {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* Max width for video */
    margin: 30px auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.responsive-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================================================
   4. FOOTER
   -------------------------------------------------------------------------
   Styling for the website's bottom section.
   ========================================================================= */

footer {
    background-color: var(--secondary-color);
    color: var(--text-dark);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px; /* Space between items if they wrap */
}

footer p {
    margin: 0; /* Remove default paragraph margin */
    font-size: 0.9em;
}

.footer-social-links a {
    margin: 0 8px;
}

.footer-social-links img {
    height: 20px;
    width: 20px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.footer-social-links img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* =========================================================================
   5. RESPONSIVE DESIGN (FOR MOBILE & TABLET)
   -------------------------------------------------------------------------
   Adjustments for smaller screen sizes to ensure the website looks good on all devices.
   ========================================================================= */

@media (max-width: 992px) { /* Adjusts for tablets and smaller */
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    header .container {
        flex-direction: column; /* Stack logo, nav, social links */
        gap: 20px;
    }

    nav ul {
        flex-direction: column; /* Stack menu items vertically */
        text-align: center;
        width: 100%;
    }
    nav ul li {
        margin: 10px 0; /* Vertical spacing for menu items */
    }

    .social-links {
        margin-top: 10px;
    }

    .hero-main {
        position: relative;
        padding: calc(130px + var(--header-height)) 0 160px; /* more top & bottom room */
        min-height: 70vh;                                     /* keeps a tall hero */
    }

    .hero-main h1 {
        font-size: 3em;
    }
    .hero-main p {
        font-size: 1.1em;
    }

    .page-hero {
        padding: 40px 0;
    }
    .page-hero h1 {
        font-size: 2.5em;
    }

    .about-content {
        flex-direction: column; /* Stack about items vertically */
        align-items: center;
        text-align: center;
    }
    .about-content .text-block {
        max-width: 100%;
        min-width: unset; /* Remove min-width override */
    }

    .gallery-grid, .gallery-grid-full, .testimonials-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min width for smaller screens */
    }

    .contact-methods {
        grid-template-columns: 1fr; /* Stack contact methods */
    }
    .method-item {
        align-items: center; /* Center items in stacked contact cards */
        text-align: center;
    }
    .method-item .btn {
        width: 100%; /* Full width buttons for contact */
        margin-right: 0;
    }
    .contact-form button {
        align-self: stretch;
    }

    footer .container {
        flex-direction: column;
    }
}

@media (max-width: 600px) { /* Adjusts for smaller phones */
    section {
        padding: 50px 0;
    }
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    h3 { font-size: 1.2em; }

    .hero-main {
        padding: 60px 0;
        min-height: 350px;
    }
    .hero-main h1 {
        font-size: 2.5em;
    }
    .hero-main p {
        font-size: 1em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .logo img {
        height: 50px;
    }
    nav ul li {
        margin: 8px 0;
    }
    nav ul li a {
        font-size: 0.95em;
    }

    .about-portrait {
        width: 200px;
        height: 200px;
    }

    .faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .faq-answer.open {
        padding: 15px 20px;
    }

    .testimonial-item blockquote {
        font-size: 1em;
    }
}
/* Hamburger button base (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 8px;
  background: #333; /* charcoal */
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}

/* Mobile styles */
@media (max-width: 768px) {
  :root { --header-height: 60px; }

  header { padding: 8px 4%; }
  .nav-toggle { display: inline-block; }

  /* hide social icons in the header on mobile */
  .social-links { display: none; }

  /* turn nav list into a slide-down panel */
  header nav ul {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-bg);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 20px 40px;
    overflow-y: auto;
  }

  /* show panel when header has .open */
  header.open nav ul { display: flex; }

  /* tighter spacing for items */
  nav ul li { margin: 0; }
  nav a { font-size: 1.1rem; }
}

/* little “X” animation (optional) */
header.open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
header.open .nav-toggle span:nth-child(2) { opacity: 0; }
header.open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* About page portrait: full width, no circle */
.about-portrait {
  width: 100%;
  max-width: 900px;      /* cap the width so it doesn’t get too huge */
  height: auto;
  display: block;
  margin: 0 auto 24px;   /* center and add space below */
  border-radius: 0 !important;
  box-shadow: none;
  object-fit: cover;
}

/* Give the About section a slightly wider content width */
.about-content .container {
  max-width: 1000px;
}

/* Simple blue header (no hero behavior) */
.page-header {
  background-color: var(--primary-color);
  color: var(--text-dark);
  text-align: center;
  padding: 60px 0 40px;
  box-shadow: inset 0 -5px 10px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Full-width simple image (not a hero) */
.gallery-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-banner {
  margin-top: 0;
  text-align: center;
  width: 100%;
  background-color: transparent;
}

.gallery-banner .container {
  padding: 0; /* Removes inner side padding that causes off-centering */
}

.gallery-banner img {
  display: block;
  width: 100%;
  max-width: 1000px; /* same as gallery image area */
  margin: 0 auto;    /* perfectly center horizontally */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

