/*
Theme Name: K. Sons & Co. Theme
Theme URI: https://genxelectric.co
Author: Google Antigravity
Author URI: https://genxelectric.co
Description: A modern, dark luxury theme with gold highlights for K. Sons & Co. garments showroom.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-menu, translation-ready, dark-layout, premium-styling
Text Domain: k-sons-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  /* Brand Color Tokens - Gold & Obsidian Luxury */
  --gold-raw: #d4b06f;
  --gold-light: #ebd6b0;
  --gold-dark: #b68d4c;
  --gold-soft: #fbf8f3;
  
  --obsidian: #0b0c0e;
  --obsidian-card: #14161b;
  --obsidian-soft: #1e2129;
  
  --charcoal: #2c303a;
  --text-muted: #8a92a6;
  --text-light: #e3e7f0;
  --white: #ffffff;
  --border-dark: rgba(212, 176, 111, 0.15);
  --border-light: rgba(212, 176, 111, 0.35);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', Arial, sans-serif;
  
  /* Layout Metrics */
  --container: 1280px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-gold: 0 10px 30px rgba(212, 176, 111, 0.08);
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--obsidian);
  color: var(--text-light);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* Container */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

/* Sections */
.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}
.section--border-top {
  border-top: 1px solid var(--border-dark);
}

/* Typography Base */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-raw);
  margin-bottom: 12px;
}

/* Luxury Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--gold {
  background: var(--gold-raw);
  color: var(--obsidian);
}
.btn--gold:hover {
  background: var(--white);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.btn--outline {
  border: 1px solid var(--gold-raw);
  color: var(--gold-raw);
  background: transparent;
}
.btn--outline:hover {
  background: var(--gold-raw);
  color: var(--obsidian);
  box-shadow: var(--shadow-gold);
}

/* Sticky Luxury Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border-dark);
  transition: var(--transition);
}

.header--scrolled {
  background: rgba(11, 12, 14, 0.96);
  padding: 10px 0;
}

.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold-raw);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.logo__cursive {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--white);
  font-size: 28px;
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light);
  position: relative;
  padding: 8px 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-raw);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--gold-raw);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link.active {
  color: var(--gold-raw);
}
.nav__link.active::after {
  width: 100%;
}

/* Mobile Toggle Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  justify-content: center;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--gold-raw);
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -7px);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(11,12,14,0.7) 0%, rgba(11,12,14,0.9) 100%);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  filter: brightness(0.32);
}

.hero__content {
  max-width: 740px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
}

.hero__title span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-raw);
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 580px;
  font-weight: 400;
  opacity: 0.9;
}

.hero__actions {
  display: flex;
  gap: 16px;
}

/* Heritage Section */
.heritage__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.heritage__text {
  padding-right: 40px;
}

.heritage__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin-bottom: 28px;
}

.heritage__title span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-raw);
}

.heritage__desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.heritage__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.heritage__feature h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-raw);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.heritage__feature p {
  font-size: 14px;
  color: var(--text-muted);
}

.heritage__images {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
  height: 600px;
}

.heritage__img-wrapper {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.heritage__img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.heritage__img-wrapper:hover img {
  transform: scale(1.08);
}

.heritage__img-wrapper--primary {
  grid-column: 1 / 10;
  grid-row: 1 / 10;
  z-index: 2;
}

.heritage__img-wrapper--secondary {
  grid-column: 5 / 13;
  grid-row: 5 / 13;
  z-index: 1;
}

/* Collections Section */
.collections__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.collections__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.collections__desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Tab Filtering Navigation */
.tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  color: var(--text-muted);
  transition: var(--transition);
}

.tab-btn:hover {
  border-color: var(--gold-raw);
  color: var(--white);
}

.tab-btn.active {
  background: var(--gold-raw);
  border-color: var(--gold-raw);
  color: var(--obsidian);
  box-shadow: var(--shadow-gold);
}

/* Collections Grid */
.collections__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.collection-card {
  background: var(--obsidian-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.collection-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-raw);
  box-shadow: var(--shadow-gold);
}

.collection-card__media {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.collection-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collection-card:hover .collection-card__media img {
  transform: scale(1.05);
}

.collection-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(11, 12, 14, 0.85);
  border: 1px solid var(--gold-raw);
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-raw);
  border-radius: var(--radius-sm);
}

.collection-card__content {
  padding: 30px;
}

.collection-card__title {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 12px;
}

.collection-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.collection-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-dark);
  padding-top: 20px;
}

.collection-card__link {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-raw);
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-card__link svg {
  transition: transform 0.25s;
}

.collection-card__link:hover svg {
  transform: translateX(5px);
}

/* Showroom Tour Grid */
.showroom__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.showroom__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
}

.showroom__desc {
  color: var(--text-muted);
  font-size: 16px;
}

.showroom__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.showroom-card {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  cursor: pointer;
}

.showroom-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.showroom-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 14, 0) 40%, rgba(11, 12, 14, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition);
}

.showroom-card:hover img {
  transform: scale(1.08);
}

.showroom-card:hover .showroom-card__overlay {
  opacity: 1;
}

.showroom-card__title {
  color: var(--white);
  font-size: 18px;
  font-family: var(--font-display);
}

.showroom-card__title span {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gold-raw);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Fitting Appointment booking form */
.booking__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: stretch;
}

.booking__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.booking__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--white);
  margin-bottom: 24px;
}

.booking__title span {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-raw);
}

.booking__desc {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.booking__details {
  display: grid;
  gap: 24px;
}

.booking-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.booking-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold-raw);
  display: grid;
  place-items: center;
  color: var(--gold-raw);
  flex: none;
}

.booking-item__content h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 4px;
}

.booking-item__content p {
  font-size: 14.5px;
  color: var(--text-muted);
}

.booking__form-wrapper {
  background: var(--obsidian-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-gold);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group--full {
  grid-column: 1 / 3;
}

.form-group label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  background: var(--obsidian);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold-raw);
  box-shadow: 0 0 10px rgba(212, 176, 111, 0.15);
}

.form-status {
  grid-column: 1 / 3;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--gold-raw);
  margin-top: 10px;
}

/* Footer styling */
.footer {
  background: #050607;
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 40px;
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer__logo {
  margin-bottom: 24px;
}

.footer__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 320px;
}

.footer__socials {
  display: flex;
  gap: 12px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__social-link:hover {
  border-color: var(--gold-raw);
  color: var(--gold-raw);
  background: rgba(212, 176, 111, 0.05);
}

.footer__col h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--white);
  margin-bottom: 24px;
}

.footer__list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer__list a {
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer__list a:hover {
  color: var(--gold-raw);
  padding-left: 4px;
}

.footer__hours {
  list-style: none;
  display: grid;
  gap: 12px;
}

.footer__hours li {
  font-size: 13.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.footer__hours span:last-child {
  color: var(--white);
  font-weight: 500;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 40px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Lightbox Modal slider */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  place-items: center;
  padding: 40px 24px;
}

.modal-container {
  background: var(--obsidian-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-gold);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: rgba(11, 12, 14, 0.8);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--white);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.modal-close:hover {
  border-color: var(--gold-raw);
  color: var(--gold-raw);
}

.modal-slider {
  position: relative;
  height: 520px;
  background: var(--obsidian);
}

.modal-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-slide.active {
  opacity: 1;
  visibility: visible;
}

.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11, 12, 14, 0.8);
  border: 1px solid var(--border-dark);
  color: var(--white);
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.modal-arrow:hover {
  border-color: var(--gold-raw);
  color: var(--gold-raw);
}

.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }

.modal-info {
  padding: 30px;
  background: var(--obsidian-card);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--border-dark);
}

.modal-info h3 {
  font-size: 22px;
  color: var(--white);
}

.modal-info p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.modal-badge {
  background: rgba(212, 176, 111, 0.05);
  border: 1px solid var(--border-dark);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-raw);
  border-radius: var(--radius-sm);
}

/* Mobile Responsive Adjustments */
@media (max-width: 980px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--obsidian-card);
    border-left: 1px solid var(--border-dark);
    flex-direction: column;
    padding: 100px 30px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 24px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .nav.open {
    right: 0;
  }

  .heritage__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .heritage__text {
    padding-right: 0;
  }
  
  .collections__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .showroom__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .booking__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 650px) {
  .hero__actions {
    flex-direction: column;
  }
  
  .collections__grid {
    grid-template-columns: 1fr;
  }
  
  .showroom__grid {
    grid-template-columns: 1fr;
  }
  
  .form__grid {
    grid-template-columns: 1fr;
  }
  
  .form-group--full {
    grid-column: auto;
  }
  
  .footer__main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .modal-container {
    height: 100%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
  }
  
  .modal-slider {
    flex: 1;
    height: auto;
  }
  
  .modal-info {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}
