/* ---------------------------
   Tamsi — Consolidated CSS
   --------------------------- */

/* Theme variables */
:root {
    --primary: #D4AF37; /* Elegant Gold/Warm Yellow */
    --secondary: #F0EAD6; /* Soft Beige/Cream */
    --accent: #E0B95B; /* Rich Gold/Yellow */
    --background: #FDFDFD; /* Crisp Off-White */
    --surface: #FFFFFF; /* Pure White for cards/elements */
    --text: #333333; /* Deep Charcoal for readability */
    --textSecondary: #666666; /* Medium Grey for secondary text */
    --border: #E0E0E0; /* Light Grey for delicate separation */
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
  
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
  
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
  
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.3);
  }
  
  /* Reset & base */
  *,
  *::before,
  *::after { box-sizing: border-box; margin: 0; padding: 0; }
  
  html { scroll-behavior: smooth; font-size: 16px; }
  
  body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  /* Links */
  a { color: var(--primary); text-decoration: none; transition: color 0.3s ease, transform 0.2s ease; }
  a:hover { color: var(--accent); transform: translateY(-2px); }
  
  /* Container */
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }
  
  /* Typography */
  h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 0.8em;
    line-height: 1.2;
  }
  
  h1 { font-size: 3.8rem; font-weight: 700; }
  h2 { font-size: 2.8rem; font-weight: 700; }
  h3 { font-size: 2.2rem; font-weight: 700; }
  h4 { font-size: 1.6rem; font-weight: 600; }
  p { font-size: 1.1rem; margin-bottom: 1em; color: var(--textSecondary); }
  
  /* Section titles */
  .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--text);
    position: relative;
    padding-bottom: 15px;
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
  }
  
  .section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--textSecondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Buttons */
  .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
  }
  
  .primary-btn {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--surface);
    box-shadow: var(--shadow-light);
  }
  
  .primary-btn:hover {
    background: linear-gradient(45deg, var(--accent), var(--primary));
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    transform: translateY(-3px) scale(1.02);
  }
  
  .ghost-btn {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
  }
  
  .ghost-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.02);
  }
  
  /* ---------------------------------
     Header (clean, responsive)
     --------------------------------- */
  .header {
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  }
  
  /* when you add .scrolled via JS it gets a stronger style */
  .header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(6px);
  }
  

  .contact-card p {
    white-space: nowrap;
  }

  
  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 1rem;
  }
  
  /* Brand: logo + text inline, aligned */
  .brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: inherit;
  }
  
  .brand-logo {
    height: 45px;   /* controls visual height relative to text */
    width: auto;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
  }
  
  .brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
  }
  
  .brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.05;
  }
  
  .brand-sub {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 600;
    color: var(--textSecondary);
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
  }
  
  /* Nav */
  .nav {
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .nav .nav-link {
    margin-left: 0;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--textSecondary);
    position: relative;
    padding: 0.35rem 0.5rem;
    transition: color 0.2s ease;
    border-radius: 6px;
  }
  
  .nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
  }
  
  .nav .nav-link:hover::after,
  .nav .nav-link.active::after { width: 100%; }
  
  .nav .nav-link:hover,
  .nav .nav-link.active { color: var(--text); background: transparent; }
  
  /* Menu button for small screens */
  .menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease;
  }
  
  .menu-btn:hover { background-color: var(--secondary); }
  
  /* ---------------------------------
     Hero and product components
     --------------------------------- */
  .hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0;
    gap: 40px;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
  }
  
  .hero-left { flex: 1; max-width: 600px; z-index: 1; }
  
  .hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 800;
    font-family: var(--font-display);
    background: linear-gradient(90deg, var(--text), var(--textSecondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  
  .hero-lead { font-size: 1.3rem; color: var(--textSecondary); margin-top: 15px; margin-bottom: 30px; }
  
  .hero-cta-row { display: flex; gap: 15px; flex-wrap: wrap; }
  
  .hero-right {
    flex-shrink: 0;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
  }
  
  .image-frame {
    background: var(--surface);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* gradient border using pseudo element */
  .image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }
  
  .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    transition: transform 0.5s ease-in-out;
  }
  
  /* Product showcase / carousel */
  .product-showcase-section { padding: 80px 0; background-color: var(--background); }
  
  .product-carousel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    position: relative;
  }
  
  .carousel-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--textSecondary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
  }
  
  .carousel-nav:hover {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
    box-shadow: var(--shadow-medium), var(--shadow-glow);
    transform: scale(1.05);
  }
  
  .carousel-content { flex-grow: 1; overflow: hidden; position: relative; }
  
  .label-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .label-grid.active { opacity: 1; transform: translateY(0); }
  
  .surface-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-light);
  }
  
  /* Small utility classes used in product sections */
  .brand-mark { font-family: var(--font-display); color: var(--primary); font-size: 1.2rem; font-weight: 700; opacity: 0.8; }
  .product-title { font-family: var(--font-display); font-size: 2.5rem; margin-top: 8px; color: var(--text); }
  .product-sub { color: var(--accent); font-weight: 600; margin-top: 6px; font-size: 1.1rem; }
  .badge { display: inline-block; margin-top: 15px; padding: 8px 15px; border-radius: var(--border-radius-md); background: rgba(212, 175, 55, 0.15); color: var(--primary); font-weight: 700; font-size: 0.9rem; }
  
  /* Fragrance cards */
  .fr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-top: 40px; }
  .fr-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .fr-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-medium), var(--shadow-glow); border-color: var(--primary); }
  .fr-card h4 { font-family: var(--font-body); font-size: 1.5rem; color: var(--text); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
  .fr-card h4 i { font-size: 1.8rem; color: var(--accent); transition: transform 0.3s ease; }
  .fr-card:hover h4 i { transform: rotate(5deg) scale(1.1); color: var(--primary); }
  .fr-card.active { border-color: var(--primary); box-shadow: var(--shadow-medium), var(--shadow-glow); }
  
  /* Contact section */
  .contact-section { padding: 80px 0; background-color: var(--background); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 40px; align-items: center; }
  .contact-card { padding: 30px; }
  .contact-card h4 { font-family: var(--font-body); font-size: 2rem; color: var(--text); margin-bottom: 15px; }
  .contact-card p { font-size: 1.1rem; margin-bottom: 12px; color: var(--textSecondary); }
  .contact-card p a { color: var(--primary); font-weight: 500; }
  .contact-card p a:hover { color: var(--accent); }
  
  /* Footer */
  .footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid var(--border);
    background-color: var(--background);
    color: var(--textSecondary);
    font-size: 0.95rem;
  }
  .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
  .footer-links a { color: var(--textSecondary); margin-left: 20px; }
  .footer-links a:hover { color: var(--primary); }
  
  /* Misc utilities */
  .label-tag {
    margin-top: 30px; padding: 15px 20px; background: linear-gradient(90deg, var(--primary), var(--accent)); color: var(--surface);
    text-align: center; border-radius: var(--border-radius-md); font-weight: 700; letter-spacing: 1px; font-size: 1.1rem; box-shadow: var(--shadow-light);
  }
  
  .reveal-section { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
  .reveal-section.is-visible { opacity: 1; transform: translateY(0); }
  
  /* Carousel dots */
  .carousel-dots { display: flex; justify-content: center; margin-top: 30px; gap: 10px; }
  .dot { width: 12px; height: 12px; background-color: var(--border); border-radius: 50%; cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; }
  .dot.active { background-color: var(--primary); border-color: var(--accent); transform: scale(1.2); }
  .dot:hover { background-color: var(--primary); border-color: var(--primary); }
  
  /* ---------------------------------
     Responsive
     --------------------------------- */
  @media (max-width: 1024px) {
    .brand-logo {
        height: 25px;   /* controls visual height relative to text */
        width: auto;
        object-fit: contain;
        display: block;
        flex-shrink: 0;
      }
    .container { padding: 0 20px; }
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.4rem; }
    h3 { font-size: 1.8rem; }
    .hero-section { margin-top: 50px; flex-direction: column; text-align: center; padding: 60px 0; }
    .hero-right { width: 350px; height: 350px; margin-top: 40px; }
    .label-grid { grid-template-columns: 1fr; }
    .product-carousel { flex-direction: column; }
    .carousel-nav { position: static; margin: 15px auto; }
    .fr-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { margin-top: 15px; }
    .footer-links a { margin: 0 10px; }
  }
  
  @media (max-width: 768px) {
    .brand-logo {
        height: 25px;   /* controls visual height relative to text */
        width: auto;
        object-fit: contain;
        display: block;
        flex-shrink: 0;
      }
    .nav { display: none; }
    .menu-btn { display: block; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.6rem; }
    .section-title { font-size: 2.2rem; }
    .section-subtitle { font-size: 1rem; }
    .hero-section { padding: 40px 0; }
    .hero-title { font-size: 3.5rem; }
    .hero-lead { font-size: 1.1rem; }
    .hero-right { width: 280px; height: 280px; }
    .product-title { font-size: 2rem; }
    .label-main, .label-side { padding: 20px; }
    .about h4, .ingredients h4, .manufacture h4, .contact-card h4 { font-size: 1.2rem; }
    .ingredients ul { grid-template-columns: 1fr; }
    .fr-card { padding: 20px; }
    .fr-card h4 { font-size: 1.3rem; }
    .fr-card h4 i { font-size: 1.5rem; }
  }
  
  @media (max-width: 480px) {
    .brand-logo {
        height: 25px;   /* controls visual height relative to text */
        width: auto;
        object-fit: contain;
        display: block;
        flex-shrink: 0;
      }
    .container { padding: 0 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; }
    .hero-title { font-size: 2.8rem; }
    .hero-btn { padding: 12px 20px; font-size: 1rem; }
    .hero-cta-row { flex-direction: column; gap: 10px; }
    .hero-right { width: 240px; height: 240px; }
    .product-title { font-size: 1.8rem; }
    .label-tag { font-size: 0.95rem; padding: 12px 15px; }
    .footer-content { text-align: center; }
    .footer-links { flex-direction: column; gap: 8px; }
    .footer-links a { margin: 0; }
  }
  .contact-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 300px;/* Primary/Accent with transparency */
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border);
}

.contact-illustration .illustration-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}