/*
Theme Name: Modern Brand Studio
Theme URI: https://example.com/modern-brand-studio
Author: OpenAI
Author URI: https://openai.com
Description: A modern 3-page WordPress theme with strong visuals, interactive sections, and original image assets.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: modern-brand-studio
Tags: custom-logo, featured-images, one-column, blog, translation-ready
*/

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef2ff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #0f172a;
  --accent: #d4a373;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
button, input, textarea { font: inherit; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #334155 55%, var(--accent));
  box-shadow: var(--shadow);
}
.brand span { font-size: 1.02rem; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px 12px;
}
.main-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color .2s ease, transform .2s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.nav-cta:hover { transform: translateY(-1px); }

.hero {
  padding: 36px 0 20px;
}
.hero-card {
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 35%, #334155 100%);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  min-height: 720px;
}
.hero-copy {
  padding: 72px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f9e6cf;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .78rem;
}
.kicker::before {
  content: '';
  width: 44px;
  height: 1px;
  background: rgba(212, 163, 115, .85);
}
.hero h1, .page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  margin: 18px 0 16px;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  letter-spacing: -.03em;
}
.hero p {
  max-width: 620px;
  color: rgba(255,255,255,.84);
  font-size: 1.08rem;
  margin: 0 0 28px;
}
.button-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #fff; color: var(--primary); }
.btn-secondary { border-color: rgba(255,255,255,.28); color: #fff; }

.hero-visual {
  position: relative;
  min-height: 720px;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; min-height: 720px;
}
.floating-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: min(320px, 86%);
  background: rgba(255,255,255,.92);
  color: var(--text);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.floating-card strong { display: block; margin-bottom: 6px; }
.floating-card p { margin: 0; color: var(--muted); font-size: .96rem; }

.section {
  padding: 84px 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.section-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0;
  line-height: 1.08;
}
.section-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-body { padding: 24px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); }
.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.05); }

.stats {
  background: linear-gradient(180deg, rgba(15,23,42,.02), rgba(15,23,42,.06));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
}
.stat strong { display: block; font-size: 2rem; margin-bottom: 6px; }
.stat span { color: var(--muted); }

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  align-items: center;
}
.about-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-image img { width: 100%; height: 100%; object-fit: cover; min-height: 560px; }
.about-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.about-box p { color: var(--muted); }
.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  padding-left: 30px;
  position: relative;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 18px;
}
.gallery-grid .card-media { aspect-ratio: 1 / 1; }
.gallery-grid .span-2 { grid-row: span 2; aspect-ratio: auto; }
.gallery-grid .span-2 .card-media { aspect-ratio: auto; min-height: 100%; }

.testimonial {
  background: linear-gradient(135deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.testimonial p { font-size: 1.05rem; color: var(--muted); margin-top: 0; }
.testimonial strong { display: block; margin-top: 18px; }

.page-hero {
  padding: 56px 0 30px;
}
.page-hero-card {
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  box-shadow: var(--shadow);
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1fr .85fr;
  align-items: stretch;
}
.page-hero-copy { padding: 60px; }
.page-hero-copy p { max-width: 660px; color: rgba(255,255,255,.85); }
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; min-height: 440px; }

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}
.contact-panel,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.info-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.info-list li {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-2);
}
form {
  display: grid;
  gap: 16px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
}
textarea { min-height: 180px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(212, 163, 115, .7);
  box-shadow: 0 0 0 4px rgba(212, 163, 115, .12);
}
.submit-btn {
  justify-self: start;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
}

.site-footer {
  margin-top: 20px;
  padding: 34px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--primary); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-inner,
  .about-grid,
  .contact-layout,
  .grid-3,
  .gallery-grid,
  .stat-grid,
  .field-row {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .page-hero-copy { padding: 36px 24px; }
  .hero-visual, .hero-visual img { min-height: 420px; }
  .about-image img { min-height: 420px; }
  .section { padding: 64px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 78px;
    right: 16px;
    left: 16px;
    background: rgba(255,255,255,.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 14px;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .main-nav a { display: block; padding: 12px 14px; border-radius: 12px; }
  .nav-cta { text-align: center; }
  .section-title { flex-direction: column; align-items: start; }
  .hero h1, .page-hero h1 { font-size: clamp(2.2rem, 10vw, 4rem); }
}
