/* ========================================
   Mr. Carmelo's Custom Tailor — Styles
   Palette: Forest Green + Off-White + Gold
======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --green-900: #0B2118;
  --green-800: #1B4332;
  --green-700: #2D6A4F;
  --green-600: #40916C;
  --green-500: #52B788;
  --gold-500: #C9A84C;
  --gold-400: #D4A843;
  --gold-300: #E8C96A;
  --cream-50: #FAF8F5;
  --cream-100: #F5F0E8;
  --cream-200: #EDE6D8;
  --cream-300: #E0D5C0;
  --charcoal: #1A1A1A;
  --charcoal-light: #2D2D2D;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--cream-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   NAVIGATION
======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(11, 33, 24, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo-mark {
  width: 38px;
  height: 38px;
  background: var(--gold-400);
  color: var(--green-900);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-400);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-phone {
  display: flex !important;
  align-items: center;
  gap: 6px;
  color: var(--gold-400) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

.nav-phone::after {
  display: none !important;
}

.nav-phone:hover {
  color: var(--gold-300) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--green-900);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 8px;
}

.nav-overlay-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.nav-overlay-links a {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}

.nav-overlay-links a:hover {
  color: var(--gold-400);
}

.nav-overlay-links a:last-child {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--gold-400);
  margin-top: 16px;
  letter-spacing: 0.05em;
}

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 33, 24, 0.72) 0%,
    rgba(11, 33, 24, 0.65) 40%,
    rgba(11, 33, 24, 0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  animation: scrollBounce 2s ease infinite;
  transition: color var(--transition);
}

.hero-scroll:hover {
  color: var(--gold-400);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-400);
  color: var(--green-900);
  border-color: var(--gold-400);
}

.btn-primary:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.btn-dark:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 67, 50, 0.3);
}

.btn-accent {
  background: var(--gold-400);
  color: var(--green-900);
  border-color: var(--gold-400);
}

.btn-accent:hover {
  background: var(--gold-300);
  border-color: var(--gold-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* ========================================
   SECTION UTILITIES
======================================== */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--green-800);
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* ========================================
   SERVICES
======================================== */
.services {
  padding: 100px 0;
  background: var(--cream-50);
}

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

.service-card {
  background: var(--white);
  border-radius: 8px;
  padding: 40px 32px;
  border: 1px solid var(--cream-200);
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(27, 67, 50, 0.1);
  border-color: var(--green-600);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--green-800);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 24px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-medium);
}

/* ========================================
   ABOUT
======================================== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  background: var(--green-800);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.15;
}

.about-content {
  padding: 16px 0;
}

.about-eyebrow {
  margin-bottom: 16px;
}

.about-title {
  margin-bottom: 28px;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 20px;
}

.about-text em {
  color: var(--green-700);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.05em;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--cream-200);
  border-bottom: 1px solid var(--cream-200);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--green-800);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--cream-300);
}

/* ========================================
   GALLERY
======================================== */
.gallery {
  padding: 100px 0;
  background: var(--cream-50);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,33,24,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.gallery-item--wide {
  grid-column: span 8;
}

.gallery-item:not(.gallery-item--wide) {
  grid-column: span 4;
}

.gallery-item:nth-child(2) {
  grid-row: 1 / 3;
}

/* ========================================
   CTA BANNER
======================================== */
.cta-banner {
  padding: 80px 0;
  background: var(--green-800);
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-headline {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 380px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================
   CONTACT
======================================== */
.contact {
  padding: 100px 0;
  background: var(--white);
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 36px;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--cream-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-800);
}

.contact-details strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-800);
  margin-bottom: 4px;
}

.contact-details span,
.contact-details a {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.6;
}

.contact-details a:hover {
  color: var(--green-700);
}

.contact-map {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--cream-50);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--cream-200);
}

.contact-form-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-800);
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  border: 1px solid var(--cream-300);
  border-radius: 6px;
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--green-800);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  margin-top: 16px;
}

.form-success svg {
  color: var(--gold-400);
  min-width: 20px;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-mark {
  width: 48px;
  height: 48px;
  background: var(--gold-400);
  color: var(--green-900);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.footer-logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  max-width: 260px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col span {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ========================================
   SCROLL REVEAL (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 6;
  }
  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 3;
  }
  .gallery-item:nth-child(2) {
    grid-row: auto;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero-headline {
    font-size: clamp(40px, 10vw, 64px);
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image img {
    height: 360px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 1;
  }
  .contact-split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .nav-inner {
    padding: 0 16px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item--wide {
    grid-column: span 1;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 24px;
  }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    max-width: none;
  }
}
