/* ==========================================================================
   U10 Studio — Global Styles
   Mobile-first, minimal, premium architecture aesthetic
   ========================================================================== */

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

:root {
  --color-bg: #FAFAF8;
  --color-white: #FFFFFF;
  --color-text: #2D2A26;
  --color-text-light: #6B665E;
  --color-text-muted: #9B958B;
  --color-sand: #E8E0D4;
  --color-sand-light: #F2EDE6;
  --color-stone: #C8BFB2;
  --color-accent: #3A3732;
  --color-border: #E2DDD5;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', Helvetica, Arial, sans-serif;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1200px;
  --section-pad: clamp(60px, 10vw, 120px);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1em; }
.subtitle { font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--color-text-light); line-height: 1.65; }
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-family: var(--font-body);
}

/* --- Layout --- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad) 0; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-text); }
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-white); }

@media (max-width: 600px) {
  .btn { width: 100%; padding: 16px 24px; }
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.logo img { height: 36px; width: auto; }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 32px; align-items: center; }
.nav-desktop a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  transition: var(--transition);
  position: relative;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--color-text); }
.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: var(--transition);
}
.nav-desktop a:hover::after { width: 100%; }

/* Language selector */
.lang-selector {
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.lang-selector button {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 6px;
  transition: var(--transition);
  font-family: var(--font-body);
}
.lang-selector button:hover,
.lang-selector button.active { color: var(--color-text); }
.lang-selector span { color: var(--color-border); }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.nav-mobile {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 999;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
  min-height: 56px;
  display: flex;
  align-items: center;
}
.nav-mobile .lang-selector { margin-top: 32px; justify-content: flex-start; gap: 16px; }
.nav-mobile .lang-selector button { font-size: 1rem; padding: 8px 12px; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .hamburger { display: none; }
  .nav-mobile { display: none !important; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  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(135deg, rgba(250,250,248,0.92) 0%, rgba(250,250,248,0.7) 50%, rgba(250,250,248,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-content .label { margin-bottom: 20px; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content .subtitle { margin-bottom: 36px; max-width: 560px; }
.hero-buttons { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 600px) {
  .hero-buttons { flex-direction: row; gap: 16px; }
  .hero-buttons .btn { width: auto; }
}

/* --- Intro --- */
.intro { background: var(--color-white); }
.intro-inner {
  display: grid;
  gap: 40px;
}
.intro-text { max-width: 600px; }
.intro-text h2 { margin-bottom: 20px; }
.intro-image { overflow: hidden; }
.intro-image img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .intro-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

/* --- Services --- */
.services { background: var(--color-bg); }
.services-header { text-align: center; margin-bottom: 48px; }
.services-header .label { margin-bottom: 12px; display: block; }
.services-header h2 { margin-bottom: 16px; }
.services-grid {
  display: grid;
  gap: 24px;
}
.service-card {
  background: var(--color-white);
  padding: 32px 28px;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}
.service-card:hover { border-color: var(--color-stone); transform: translateY(-2px); }
.service-card .service-icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  color: var(--color-text-light);
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.service-card p { color: var(--color-text-light); font-size: 0.925rem; margin-bottom: 0; }

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

/* --- Areas --- */
.areas {
  background: var(--color-sand-light);
  text-align: center;
}
.areas .label { display: block; margin-bottom: 12px; }
.areas h2 { margin-bottom: 24px; }
.areas p { color: var(--color-text-light); max-width: 700px; margin: 0 auto; font-size: 1rem; }

/* --- About --- */
.about { background: var(--color-white); }
.about-inner { display: grid; gap: 40px; }
.about-image { overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--color-text-light); }

@media (min-width: 768px) {
  .about-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-accent);
  color: var(--color-white);
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-banner p { color: var(--color-stone); max-width: 560px; margin: 0 auto 32px; }
.cta-banner .btn-primary {
  background: var(--color-white);
  color: var(--color-accent);
}
.cta-banner .btn-primary:hover { background: var(--color-sand); }

/* --- Blog List --- */
.blog-list { background: var(--color-bg); }
.blog-header { text-align: center; margin-bottom: 48px; }
.blog-header .label { display: block; margin-bottom: 12px; }
.blog-grid { display: grid; gap: 32px; }
.blog-card { background: var(--color-white); border: 1px solid var(--color-border); transition: var(--transition); overflow: hidden; }
.blog-card:hover { border-color: var(--color-stone); transform: translateY(-2px); }
.blog-card-image { aspect-ratio: 16/10; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-body { padding: 28px 24px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-card-meta .label { font-size: 0.7rem; }
.blog-card-meta .date { font-size: 0.8rem; color: var(--color-text-muted); }
.blog-card h3 { margin-bottom: 12px; }
.blog-card h3 a { transition: var(--transition); }
.blog-card h3 a:hover { color: var(--color-text-light); }
.blog-card .excerpt { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 16px; }
.blog-card .read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.blog-card .read-more:hover { gap: 10px; }
.blog-card .read-more svg { width: 14px; height: 14px; }

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .blog-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* --- Blog Post / Article --- */
.post-hero {
  padding-top: calc(72px + 60px);
  padding-bottom: 40px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.post-hero .label { display: block; margin-bottom: 12px; }
.post-hero h1 { margin-bottom: 16px; max-width: 720px; }
.post-hero .post-meta { display: flex; gap: 16px; color: var(--color-text-muted); font-size: 0.875rem; }

.post-content {
  background: var(--color-bg);
  padding: 60px 0 var(--section-pad);
}
.post-body {
  max-width: 720px;
  margin: 0 auto;
}
.post-body h2 { margin: 40px 0 16px; }
.post-body h3 { margin: 32px 0 12px; }
.post-body p { color: var(--color-text-light); margin-bottom: 1.2em; }
.post-body ul, .post-body ol {
  margin: 16px 0 24px 24px;
  color: var(--color-text-light);
}
.post-body li { margin-bottom: 8px; list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-feature-image {
  margin: 0 0 40px;
  overflow: hidden;
}
.post-feature-image img { width: 100%; }
.post-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--color-sand-light);
  border: 1px solid var(--color-border);
}
.post-cta h3 { margin-bottom: 12px; }
.post-cta p { color: var(--color-text-light); margin-bottom: 20px; }

/* --- Contact --- */
.contact-hero {
  padding-top: calc(72px + 60px);
  padding-bottom: 40px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.contact-hero h1 { margin-bottom: 16px; }
.contact-hero .subtitle { max-width: 560px; }

.contact-section { background: var(--color-bg); }
.contact-inner { display: grid; gap: 48px; }
.contact-form-wrapper { max-width: 600px; }

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  transition: var(--transition);
  -webkit-appearance: none;
  border-radius: 0;
  min-height: 48px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { cursor: pointer; }
.form-group .required { color: #C0392B; margin-left: 2px; }

.form-success {
  display: none;
  padding: 20px;
  background: var(--color-sand-light);
  border: 1px solid var(--color-stone);
  text-align: center;
  margin-top: 20px;
}
.form-success.show { display: block; }

.contact-info { padding: 32px 0; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info p { color: var(--color-text-light); margin-bottom: 8px; font-size: 0.925rem; }
.contact-info a { border-bottom: 1px solid var(--color-border); transition: var(--transition); }
.contact-info a:hover { border-color: var(--color-text); }

@media (min-width: 768px) {
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; gap: 64px; }
}

/* --- Footer --- */
.site-footer {
  background: var(--color-accent);
  color: var(--color-stone);
  padding: 64px 0 32px;
}
.footer-inner { display: grid; gap: 40px; }
.footer-brand .logo-footer { height: 32px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; color: var(--color-stone); }
.footer-links h4 { color: var(--color-white); margin-bottom: 16px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-links a { display: block; font-size: 0.875rem; padding: 4px 0; transition: var(--transition); }
.footer-links a:hover { color: var(--color-white); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 4px; }
.footer-contact a { border-bottom: 1px solid rgba(200,191,178,0.3); }
.footer-contact a:hover { border-color: var(--color-white); color: var(--color-white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* --- Sticky Mobile CTA --- */
.mobile-cta {
  display: block;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  padding: 12px 16px;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-border);
}
.mobile-cta .btn { width: 100%; }

@media (min-width: 900px) {
  .mobile-cta { display: none; }
}

/* Add bottom padding on mobile for sticky CTA */
@media (max-width: 899px) {
  .site-footer { padding-bottom: 100px; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
