/* === Base Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: none;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #111111;
  background-color: #faf7f2;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* === Layout Utilities === */
:root {
  --bg: #faf7f2;
  --bg-alt: #f2ece2;
  --text-main: #111111;
  --text-muted: #666666;
  --accent: #111111; /* deep charcoal for minimalist look */
  --accent-soft: #e0d5c5;
  --border-soft: rgba(0, 0, 0, 0.08);
  --radius-sm: 999px;
  --radius-md: 18px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.06);
  --container-width: 1100px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.section-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* === Header & Navigation === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(250, 247, 242, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.brand, 
.nav-cta-wrapper {
  flex: 1; /* Make side elements equal width for true centering */
  display: flex;
}

.nav-cta-wrapper {
  justify-content: flex-end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0; /* Don't squash brand */
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 500;
}

.brand-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 0.95rem; /* Slightly smaller to prevent overflow */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  margin: 0 auto; /* Center nav if possible */
}

nav ul {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 28px);
  list-style: none;
  font-size: 0.88rem;
}

nav a {
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  border-radius: 999px;
  border: 1px solid var(--accent);
  padding: 6px 14px; /* Reduced padding */
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
}

@media (max-width: 992px) {
  .nav-inner {
    padding: 12px 20px;
  }
  nav ul {
    gap: 15px;
  }
  .brand-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    font-size: 0.9rem;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: rgba(250, 247, 242, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  z-index: 99;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.1rem;
  text-align: center;
}

@media (max-width: 768px) {
  /* Ensure mobile menu doesn't show on desktop even if toggled */
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu.is-open {
    display: block !important;
  }
}

/* This was a mistake in the previous logic, let's fix it */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === Hero === */
.hero {
  padding-top: 110px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

.hero-tag {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-title {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-title span {
  font-style: italic;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 460px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px; /* Increased gap */
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
  }
}

.btn-primary,
.btn-outline {
  border-radius: 999px;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 11px 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fdfaf7;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  border-color: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  background: transparent;
}

.btn-outline:hover {
  background: #111111;
  color: #fdfaf7;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

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

.hero-stat strong {
  font-size: 0.84rem;
  color: var(--text-main);
}

.hero-image-wrapper {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #111111;
}

.hero-image-main {
  aspect-ratio: 3/4;
  object-fit: cover;
}

.hero-image-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(250, 247, 242, 0.94);
  color: #111111;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 96px;
  }

  .hero-image-wrapper {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* === Portfolio === */
.portfolio-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

.portfolio-card {
  border-radius: 24px;
  overflow: hidden;
  background: #fdfbf7;
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
}

.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.portfolio-card:hover img {
  transform: scale(1.03);
}

.portfolio-meta {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.96);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* === About & Details === */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

.about-body p + p {
  margin-top: 10px;
}

.detail-list {
  list-style: none;
  border-radius: 26px;
  background: var(--bg-alt);
  padding: 22px 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.detail-value {
  font-weight: 500;
}

/* === Services === */
.services-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border-radius: 24px;
  padding: 20px 20px 22px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fdfbf7;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.service-title {
  font-weight: 500;
}

/* === Testimonials / Clients === */
.testimonials-wrap {
  margin-top: 40px;
  border-radius: 26px;
  padding: 24px 24px 26px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #fdfbf7;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 30px;
}

@media (max-width: 900px) {
  .testimonials-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quote-mark {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.testimonial-text {
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.testimonial-name {
  font-size: 0.9rem;
  font-weight: 500;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.client-pill {
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 7px 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* === Instagram Strip === */
.insta-strip {
  margin-top: 40px;
  border-radius: 24px;
  background: var(--accent-soft);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.9rem;
}

.insta-handle {
  font-weight: 500;
}

/* === Contact === */
.contact-layout {
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

form {
  border-radius: 26px;
  padding: 24px 24px 28px;
  background: #fdfbf7;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.9rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea,
select {
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 10px 13px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fdfbf7;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  border-color: #111111;
  box-shadow: 0 0 0 1px #1111110f;
  background-color: #fefcf8;
}

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

.contact-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.contact-side {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-side strong {
  color: var(--text-main);
}

.contact-side ul {
  list-style: none;
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-side a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Footer === */
footer {
  padding: 32px 0 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
