/* =============================================
   NOI-NOI PAINTS — index.css
   Colors: White | Bright Teal (#20B2AA) | Silver (#C0C8C8)
   Fonts: EBGaramond (headings) | EBGaramond (body)
   ============================================= */

/* Regular font */
@font-face {
  font-family: 'EBGaramond';
  src: url('/assets/fonts/EBGaramond-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Italic font */
@font-face {
  font-family: 'EBGaramond';
  src: url('/assets/css/fonts/EBGaramond-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'EBGaramond';
}

:root {
  --teal:    #20B2AA;
  --teal-dk: #178a83;
  --silver:  #C0C8C8;
  --silver-lt: #e8ecec;
  --white:   #ffffff;
  --dark:    #2a2a2a;
  --mid:     #555;
  --radius:  8px;
  --shadow:  0 4px 18px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'EBGaramond';
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dk); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: 'EBGaramond', serif; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
  text-align: center;
}
.section-title.left { text-align: left; }

.section-subtitle {
  text-align: center;
  color: var(--mid);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
}

/* ---- LAYOUT ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-alt { background: var(--silver-lt); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'EBGaramond', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover {
  background: var(--teal-dk);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--teal);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-white:hover { background: var(--silver-lt); }

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--silver);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ============================================= 
   WEBSITE LOGO — Make it circular
   ============================================= */
.logo img {
  height: 52px;
  width: 52px; /* Adjust to make sure the logo is square */
  object-fit: cover; /* Ensures the image is cropped to fit the square */
  border-radius: 50%; /* Make the logo circular */
}


.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.main-nav a {
  padding: 0.45rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover { color: var(--teal); background: var(--silver-lt); }

.etsy-btn {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 0.45rem 1rem !important;
}
.etsy-btn:hover { background: var(--teal-dk) !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
  line-height: 1;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--silver);
}
.mobile-nav.open { display: block; }
.mobile-nav ul {
  list-style: none;
  padding: 0.5rem 0 1rem;
}
.mobile-nav li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition);
}
.mobile-nav li a:hover { color: var(--teal); }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 480px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dk) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-content .btn-primary {
  background: var(--white);
  color: var(--teal);
  font-size: 1rem;
}
.hero-content .btn-primary:hover {
  background: var(--silver-lt);
  color: var(--teal-dk);
}

/* =============================================
   GALLERY
   ============================================= */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.gallery-item {
  flex: 1 1 calc(33.333% - 1.25rem);
  min-width: 200px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--silver-lt);
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* =============================================
   ABOUT
   ============================================= */
.about-flex {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 0 0 340px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image img { 
  width: 100%; 
  height: 325px; 
  object-fit: cover; /* Ensures the image is cropped to fit the square */
  border-radius: 50%; /* Make the logo circular */
} 

.about-text {
  flex: 1 1 300px;
}
.about-text p { margin-bottom: 1rem; color: var(--mid); }
.about-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* =============================================
   FAQ
   ============================================= */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--silver);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'EBGaramond', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--silver-lt); color: var(--teal); }
.faq-item.open .faq-question { background: var(--teal); color: var(--white); }

.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 1rem 1.25rem;
}
.faq-answer p { color: var(--mid); }

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.testimonial-card {
  flex: 1 1 calc(33.333% - 1.5rem);
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.testimonial-text {
  font-style: italic;
  color: var(--mid);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-flex {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info { flex: 1 1 260px; }
.contact-info p { color: var(--mid); margin-bottom: 1.5rem; }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-list li { display: flex; align-items: center; gap: 0.5rem; }
.contact-label { font-weight: 700; color: var(--teal); min-width: 72px; }

.contact-form {
  flex: 1 1 340px;
  background: var(--silver-lt);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: 'EBGaramond', serif;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.form-group label { font-weight: 700; font-size: 0.88rem; color: var(--dark); }
.form-group input,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius);
  font-family: 'EBGaramond', sans-serif;
  font-size: 0.95rem;
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

/* =============================================
   NEWSLETTER BAR
   ============================================= */
.newsletter-bar {
  background: var(--teal);
  padding: 3rem 0;
}

.newsletter-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.newsletter-bar h3 {
  font-family: 'EBGaramond', serif;
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}
.newsletter-bar p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-family: 'EBGaramond', sans-serif;
  min-width: 220px;
}
.newsletter-form input:focus { outline: 2px solid var(--white); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--dark);
  color: var(--silver);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  font-family: 'EBGaramond', serif;
  font-size: 1.6rem;
  color: var(--white);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.footer-nav a {
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal); }

.footer-social {
  display: flex;
  gap: 1.25rem;
}
.footer-social a {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer-social a:hover { color: var(--white); }

.footer-copy { font-size: 0.8rem; color: #888; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: block; }

  .gallery-item { flex: 1 1 calc(50% - 1.25rem); }
  .testimonial-card { flex: 1 1 100%; }

  .about-flex { flex-direction: column; }
  .about-image { flex: none; width: 100%; }
  .about-image img { height: 280px; }

  .contact-flex { flex-direction: column; }

  .newsletter-flex { flex-direction: column; text-align: center; }
  .newsletter-form { justify-content: center; }
}

@media (max-width: 480px) {
  .gallery-item { flex: 1 1 100%; }
  .gallery-item img { height: 220px; }
}