/* BRAND O FILMS — responsive stylesheet for the supplied index.html */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --white: #fff;
  --offwhite: #fcfcfc;
  --black: #1c1c1c;
  --gold: #c7a437;
  --lightgold: #f8efcf;
  --gray: #666;
  --border: #e6e6e6;
  --shadow: 0 12px 35px rgb(0 0 0 / 8%);
  --page-gutter: clamp(1.25rem, 7vw, 7rem);
  --header-height: 82px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body { overflow-x: hidden; background: var(--white); color: var(--black); font-family: 'Inter', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; }
section { padding: clamp(4rem, 8vw, 7rem) var(--page-gutter); }

/* Header and navigation */
body > header {
  position: fixed; z-index: 999; inset: 0 0 auto; min-height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .85rem var(--page-gutter); border-bottom: 1px solid var(--border);
  background: rgb(255 255 255 / 94%); backdrop-filter: blur(18px);
}
.logo { flex: 0 0 auto; font-family: 'Montserrat', sans-serif; font-size: clamp(1.15rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: .03em; }
.logo span { color: var(--gold); }
nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(.75rem, 2.3vw, 2rem); }
nav a { position: relative; font-size: .92rem; font-weight: 600; transition: color .2s; }
nav a::after { position: absolute; right: 0; bottom: -.45rem; left: 0; height: 2px; background: var(--gold); content: ''; transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav a:hover, nav a:focus-visible { color: var(--gold); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
.start-project { flex: 0 0 auto; padding: .8rem 1.3rem; border-radius: 999px; background: var(--gold); color: var(--white); font-weight: 600; transition: background .2s; }
.start-project:hover { background: var(--black); }

/* Hero */
.hero { position: relative; min-height: max(650px, 100svh); display: grid; place-items: center; overflow: hidden; padding: calc(var(--header-height) + 3rem) var(--page-gutter) 4rem; }
.hero-gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(255 255 255 / 82%), rgb(255 255 255 / 42%)); }
.hero-content { position: relative; z-index: 1; width: min(100%, 900px); text-align: center; }
.hero h1 { font-family: 'Montserrat', sans-serif; font-size: clamp(2.8rem, 7vw, 5.2rem); font-weight: 800; line-height: 1.04; }
.hero p { margin-top: 1.5rem; color: #333; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.8; }
.hero-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.hero-buttons a { min-width: 145px; padding: .95rem 1.7rem; border: 2px solid var(--gold); border-radius: 999px; font-weight: 600; transition: .2s; }
.hero-buttons a:first-child { border-color: var(--black); background: var(--black); color: var(--white); }
.hero-buttons a:first-child:hover { border-color: var(--gold); background: var(--gold); }
.hero-buttons a:last-child { color: var(--black); }
.hero-buttons a:last-child:hover { background: var(--gold); color: var(--white); }

/* Reusable section headings */
.section-title { max-width: 900px; margin: 0 auto clamp(2.5rem, 5vw, 4.25rem); text-align: center; }
.section-title p { margin-bottom: .75rem; color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.section-title h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; }
.section-title h2::after { display: block; width: 5rem; height: 4px; margin: 1.1rem auto 0; border-radius: 10px; background: var(--gold); content: ''; }

/* Services */
#services { background: var(--offwhite); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { position: relative; overflow: hidden; padding: clamp(1.5rem, 2.5vw, 2.25rem); border: 1px solid var(--border); border-radius: 18px; background: var(--white); transition: transform .25s, box-shadow .25s, border-color .25s; }
.service-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--gold); content: ''; transform: scaleY(0); transform-origin: top; transition: transform .25s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleY(1); }
.service-card > span { display: inline-block; margin-bottom: 1.2rem; color: var(--gold); font-weight: 700; }
.service-card h3 { margin-bottom: .8rem; font-family: 'Montserrat', sans-serif; font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.service-card p { color: var(--gray); line-height: 1.75; }

/* YouTube videos: one horizontal row that can scroll on narrow screens */
.video-section { overflow: hidden; background: var(--white); }
.video-row { display: flex; gap: 1.25rem; overflow-x: auto; padding: 0 0 1rem; scroll-snap-type: x mandatory; scrollbar-color: var(--gold) #eee; scrollbar-width: thin; }
.video-card { flex: 0 0 clamp(270px, 31vw, 460px); min-width: 0; scroll-snap-align: start; }
.video-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 14px; background: #111; box-shadow: var(--shadow); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { margin-top: .85rem; font-family: 'Montserrat', sans-serif; font-size: 1.1rem; }

/* Selected work */
#work { background: var(--offwhite); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.work-card { overflow: hidden; border: 1px solid var(--border); border-radius: 18px; background: var(--white); transition: transform .25s, box-shadow .25s; }
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-image { height: clamp(210px, 28vw, 300px); overflow: hidden; }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover .work-image img { transform: scale(1.05); }
.work-content { padding: 1.5rem; }
.work-category { color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.work-content h3 { margin: .6rem 0; font-family: 'Montserrat', sans-serif; font-size: 1.7rem; }
.work-client { margin-bottom: 1.2rem; color: var(--gray); }
.view-project { display: inline-flex; gap: .5rem; font-weight: 600; transition: color .2s, gap .2s; }
.view-project:hover { gap: .8rem; color: var(--gold); }

/* About and stats (matches the supplied HTML structure) */
#about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); background: #fffdf7; }
.about-text h2 { margin-bottom: 1.5rem; font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; }
.about-text p { color: var(--gray); line-height: 1.9; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stats > div { padding: clamp(1.25rem, 2.5vw, 2rem); border: 1px solid var(--border); border-radius: 18px; background: var(--white); text-align: center; transition: .25s; }
.stats > div:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.stats h3 { color: var(--gold); font-family: 'Montserrat', sans-serif; font-size: clamp(2rem, 4vw, 3.25rem); }
.stats p { margin-top: .5rem; color: var(--gray); font-weight: 600; }

/* Contact form in the supplied HTML */
#contact { background: var(--white); }
#contact form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; width: min(100%, 900px); margin: 0 auto; }
#contact input, #contact select, #contact textarea { width: 100%; min-width: 0; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--white); font: inherit; }
#contact input:focus, #contact select:focus, #contact textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px rgb(199 164 55 / 15%); }
#contact textarea { grid-column: 1 / -1; min-height: 150px; resize: vertical; }
#contact button { grid-column: 1 / -1; justify-self: start; padding: .95rem 1.7rem; border: 0; border-radius: 999px; background: var(--gold); color: var(--white); font-weight: 700; transition: background .2s; }
#contact button:hover { background: var(--black); }

/* Footer and right-side social drawer */
footer { padding: 3.5rem var(--page-gutter) 2rem; background: var(--black); color: var(--white); }
footer h3 { font-family: 'Montserrat', sans-serif; font-size: 1.8rem; }
footer p { margin-top: .8rem; color: #ccc; line-height: 1.7; }
.footer-social { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
.footer-social a { padding: .7rem 1rem; border: 1px solid rgb(255 255 255 / 25%); border-radius: 999px; transition: .2s; }
.footer-social a:hover, .footer-social a:focus-visible { border-color: var(--gold); background: var(--gold); color: var(--white); }
.social-backdrop { position: fixed; z-index: 1000; inset: 0; background: rgb(0 0 0 / 55%); }
.social-backdrop[hidden] { display: none; }
.social-panel { position: fixed; z-index: 1001; inset: 0 0 0 auto; width: min(390px, 88vw); padding: 5rem 2rem 2rem; background: #111; color: var(--white); box-shadow: -12px 0 40px rgb(0 0 0 / 25%); transform: translateX(102%); transition: transform .28s ease; }
.social-panel.is-open { transform: translateX(0); }
.social-panel > p { margin: 0 0 1rem; color: #bbb; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.social-panel > a { display: flex; justify-content: space-between; padding: 1.1rem 0; border-bottom: 1px solid rgb(255 255 255 / 20%); font-size: 1.4rem; }
.social-close { position: absolute; top: 1rem; right: 1.2rem; border: 0; background: transparent; color: inherit; font-size: 2rem; }

@media (max-width: 1050px) {
  :root { --header-height: 105px; }
  body > header { flex-wrap: wrap; justify-content: center; gap: .65rem 1.25rem; padding-block: .7rem; }
  .logo { margin-right: auto; }
  body > header .start-project { margin-left: auto; }
  nav { order: 3; width: 100%; gap: 1.2rem; }
  nav a { font-size: .86rem; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --header-height: 112px; }
  section { padding-block: 4rem; }
  body > header { gap: .55rem; padding-inline: 1rem; }
  .logo { font-size: 1.1rem; }
  body > header .start-project { padding: .65rem .9rem; font-size: .82rem; }
  nav { gap: .55rem 1rem; }
  nav a { font-size: .78rem; }
  .hero { min-height: 700px; min-height: 100svh; }
  .overlay { background: rgb(255 255 255 / 70%); }
  .hero-buttons { align-items: stretch; flex-direction: column; width: min(100%, 300px); margin-inline: auto; }
  .service-grid { grid-template-columns: 1fr; gap: 1rem; }
  .video-card { flex-basis: min(82vw, 380px); }
  #about { grid-template-columns: 1fr; }
  .stats { gap: .75rem; }
  .stats > div { padding: 1.1rem .7rem; }
  #contact form { grid-template-columns: 1fr; }
  #contact textarea, #contact button { grid-column: auto; }
  #contact button { justify-self: stretch; }
  footer { padding-block: 3rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
