/* RK Agency — hand-written replacement for the Divi theme output. */

:root {
  --black: #000;
  --ink: #020202;
  --text: #666;
  --heading: #333;
  --link-blue: #2ea3f2;
  --rule: #f2f2f2;
  --sans: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --header-h: 144px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul { margin: 0; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1em; }

/* ---------- Header / nav ---------- */

.site-header {
  position: relative;
  z-index: 10;
  background: #fff;
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: the menu wrapper dissolves so links and logo share one flex row. */
.site-menu { display: contents; }
.site-menu ul { list-style: none; padding: 0; display: flex; align-items: center; }
.menu-left { order: 1; }
.site-logo { order: 2; margin: 0 25px 0 25px; }
.menu-right { order: 3; }

.site-logo img { width: auto; height: 90px; }

.site-menu li { padding: 0 11px; }
.site-menu a {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: opacity .3s ease;
}
.site-menu a:hover { opacity: .7; }
.site-menu a[aria-current="page"] { color: var(--black); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  background-color: #000;
  background-image: linear-gradient(248deg, rgba(0, 0, 0, .31) 0%, rgba(0, 0, 0, .69) 39%), url('/assets/img/RK-Agency-bg.jpg');
  background-size: cover;
  background-position: center;
  padding: 12vh 0;
}
.hero-inner { width: 90%; max-width: 1280px; margin: 0 auto; }
.hero h1 {
  color: #fff;
  font-size: 80px;
  font-weight: 800;
  line-height: 1em;
  text-align: left;
  padding-bottom: 10px;
  margin-top: -5px;
}
.hero h1 span, .section-title span, .brands-title span { font-weight: 400; }

.hero-lead {
  color: #fff;
  font-size: 22px;
  line-height: 1.4;
  max-width: 50%;
  margin-top: 8px;
}

.btn-outline {
  display: inline-block;
  margin-top: 39px;
  padding: 13px 60px;
  border: 1px solid #fff;
  color: #fff;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.7;
  transition: color .3s ease, background-color .3s ease;
}
.btn-outline:hover, .btn-outline:focus-visible { background: #fff; color: #000; }

/* ---------- Home: section titles ---------- */

.section-title {
  font-size: 30px;
  font-weight: 800;
  text-align: center;
  color: var(--heading);
  padding: 0 0 18px;
}
.section-title strong { font-weight: 800; }

.home-talent { padding: 40px 0 19px; }
.talent-strip {
  display: grid;
  grid-auto-flow: column; /* one equal column per talent, however many there are */
  grid-auto-columns: 1fr;
  border-top: 10px solid #fff;
  padding: 5px 0;
}
.talent-strip a { display: block; }
.talent-strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: filter .3s ease;
}
.talent-strip a:hover img { filter: opacity(40%); }

.home-services { padding: 15px 0 15px; }
.services-grid { background: var(--ink); }
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 5px solid #000;
  padding: 40px 0 27px;
  background: var(--ink);
}
.service-tile {
  display: block;
  padding: 0 15px;
  color: #fff;
}
.service-tile img {
  width: 100%;
  margin-bottom: 24px;
  filter: saturate(0%);
  transition: filter .3s ease;
}
.service-tile:hover img { filter: saturate(0%) opacity(40%); }
.service-tile.pt18 { padding-top: 18px; }
.service-tile.pt45 { padding-top: 45px; }
.service-tile.pt5  { padding-top: 5px; }
.service-tile.pt38 { padding-top: 38px; }
.service-tile.pt35 { padding-top: 35px; }
.service-tile.tall img { min-height: 391px; object-fit: cover; }
.service-tile h3 {
  color: #fff;
  font-family: 'Syne', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  padding-bottom: 10px;
}

/* ---------- Footer ---------- */

.site-footer { background: #000; padding: 55px 0; color: #fff; }
.footer-inner {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 48.5fr 23.5fr 23.5fr;
  column-gap: 3%;
  align-items: start;
}
.footer-logo { padding-left: 0; align-self: center; }
.footer-logo img { width: 100px; }
.footer-col { padding-left: 0; }
.footer-col:nth-child(2) { padding-left: 40px; }
.footer-title {
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.4;
  text-transform: uppercase;
  padding-bottom: 10px;
}
.footer-links { font-family: var(--serif); font-size: 16px; line-height: 1.8; }
.footer-links + .footer-links { margin-top: 12px; }
.footer-links a { color: #fff; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- About ---------- */

.about { padding-top: 39px; }
.about-row {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.about-photo {
  background-size: cover;
  background-position: center;
  filter: saturate(0%);
}
.photo-agency   { background-image: url('/assets/img/creative-agency-3-ttr-8.jpg'); }
.photo-kimberly { background-image: url('/assets/img/452259330_10226661865152091_3025880114867115923_n.jpg'); filter: saturate(0%) contrast(135%); }
.photo-rosella  { background-image: url('/assets/img/452259330_10226661865152091_3025880114867115923_nrosella.jpg'); }
.about-text {
  padding: 8vh 10%;
  color: #787878;
  font-family: 'Mulish', Helvetica, Arial, Lucida, sans-serif;
  font-size: 18px;
  line-height: 1.71;
}
.about-text p { padding-bottom: 1em; }
.about-text p:first-of-type { margin-top: 6px; }
.about-text .gap-before { margin-top: 18px; } /* the live intro has an empty <p> here */
.about-text p:last-child { padding-bottom: 0; }
.founders-label {
  color: #000;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.15;
  padding-bottom: 10px;
}
.founder-name {
  color: #000;
  font-family: 'DM Sans', Helvetica, Arial, Lucida, sans-serif;
  font-size: 43px;
  font-weight: 500;
  line-height: 1.15;
  padding-bottom: 10px;
}

/* ---------- Services ---------- */

.service-boxes { padding: 15px 0; }
.boxes-row {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 3%;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
}
.boxes-row + .boxes-row { margin-top: 0; }
.service-box {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 33px 20px 40px;
  min-height: 257px;
}
.service-box.low { padding-top: 50px; }
.service-icon { display: block; margin: 0 auto 18px; width: 80px; height: 80px; fill: #fff; }
.service-box h3 {
  color: #fff;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.7;
  text-transform: uppercase;
}

/* ---------- Talent ---------- */

.page-talent .hero, .page-services .hero, .page-privacy .hero { margin-bottom: 17px; }
.talent-grid {
  width: 100%;
  max-width: 1410px;
  margin: 0 auto;
  padding: 15px 0 300px;
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr); /* --cols set by talent/index.php: one column per pair */
  grid-template-rows: auto auto;
  grid-auto-flow: column; /* fill column by column, like the live Divi columns */
  column-gap: 3%;
  border-bottom: 1px solid var(--rule);
}
.talent-card { text-align: center; margin-bottom: 54px; }
.talent-card img { margin: 0 auto 22px; width: 400px; }
.talent-card h2 {
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  text-transform: uppercase;
}
.talent-card h2 strong { font-weight: 700; }
.talent-links { color: #000; font-size: 13px; padding-top: 6px; }
.talent-links a { color: var(--link-blue); }
.talent-links a:hover { text-decoration: underline; }

.brands { background: var(--ink); color: #fff; padding: 0 0 30px; overflow: hidden; }
.brands-title {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 0 26px;
  color: #fff;
  font-size: 50px;
  font-weight: 800;
  line-height: 1.4;
}
.marquee { height: 54px; line-height: 55px; overflow: hidden; color: #fff; }
.marquee + .marquee { margin-top: 20px; }
.marquee-track {
  display: inline-flex;
  white-space: pre;
  font-size: 60px;
  font-weight: 500;
  animation: rk-slide 120s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; }
@keyframes rk-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Contact ---------- */

.contact { width: 80%; max-width: 1080px; margin: 0 auto; padding: 27px 0 42px; }
.contact-intro {
  font-size: 23px;
  line-height: 1.3;
  text-align: center;
  color: var(--text);
  padding-bottom: 1em;
}
.contact-intro a { color: #000; overflow-wrap: anywhere; }

.contact-form-wrap { padding-top: 38px; scroll-margin-top: 20px; }
.contact-form { color: #112337; }
.field { margin: 0 0 40px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  color: #112337;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
  padding: 0;
}
.field-name legend { text-align: center; width: 100%; }
.req { color: #606060; font-size: 13px; font-weight: 500; margin-left: 4px; }
.name-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.name-pair label {
  color: #585e6a;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  margin: 8px 0 0;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #686e77;
  border-radius: 0;
  background: #fff;
  color: #112337;
  font: 500 16px/1.4 var(--sans);
  padding: 0 14px;
  height: 50px;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form textarea { height: 288px; padding: 12px 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
.contact-form [aria-invalid="true"] { border-color: #c02b0a; }
.field-error { color: #c02b0a; font-size: 14px; font-weight: 600; margin-top: 8px; }
.form-alert {
  border: 1px solid #c02b0a;
  color: #c02b0a;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 20px;
  margin-bottom: 30px;
}
.form-alert a { color: #000; text-decoration: underline; }
.form-confirmation {
  color: #000;
  font-size: 20px;
  text-align: center;
  padding: 20px 0 40px;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn-submit {
  display: block;
  width: 100%;
  margin-top: 64px;
  height: 64px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: 500 14px var(--sans);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(18, 25, 97, .08);
}
.btn-submit:hover { background: #222; }

/* ---------- Privacy policy ---------- */

.legal { padding: 54px 0; }
.legal-inner { width: 80%; max-width: 1080px; margin: 0 auto; }
.legal p { padding-bottom: 1em; }
.legal h3 { font-size: 22px; padding-bottom: 10px; }
.legal h4 { font-size: 18px; padding-bottom: 10px; }
.legal ul { list-style: disc; padding: 0 0 23px 1em; line-height: 26px; }
.legal a { color: var(--link-blue); }

/* ---------- Tablet & mobile (Divi breakpoint 980px) ---------- */

@media (max-width: 980px) {
  :root { --header-h: 98px; }

  .site-header { height: auto; }
  .site-nav { display: block; position: relative; height: var(--header-h); }
  .site-logo { display: block; width: max-content; margin: 0 auto; padding-top: 19px; }
  .site-logo img { height: 60px; }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 10px 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    height: 3px;
    background: #000;
    margin: 0 0 6px;
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-toggle span:last-child { margin-bottom: 0; }
  .menu-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .site-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid #000;
    padding: 5% 5%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .menu-open .site-menu { display: block; }
  .site-menu ul { display: block; }
  .site-menu li { padding: 0; }
  .site-menu a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); }

  /* Live child theme forces 50px / 30px here (overrides Divi's 15vh) */
  .hero { padding: 50px 0 30px; }
  .hero h1 { font-size: 50px; margin-top: -15px; }
  .hero-lead { max-width: 100%; margin-top: 10px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
  .footer-col, .footer-col:nth-child(2) { padding-left: 0; padding-top: 40px; }
  .footer-logo { padding-left: 0; }

  .about-row { grid-template-columns: 1fr; }
  .about-row.reverse-mobile .about-photo { order: -1; }
  /* Divi's empty background column renders ~row width + 23px tall when stacked */
  .about-row .about-photo { height: calc(90vw + 23px); }
  .about-text { padding: 60px 0; }

  .boxes-row { grid-template-columns: 1fr 1fr; column-gap: 5.5%; row-gap: 18px; width: 90%; padding-bottom: 18px; border-bottom: 0; }
  /* live: .page-id-241 .et_pb_column { padding: 60px } below 981px */
  .service-box { padding: 88px 60px 70px; }
  .service-box.low { padding-top: 105px; }
  .services-row { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .talent-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; width: 90%; padding-bottom: 15px; }
  .home-talent { padding-top: 22px; }
  .talent-card img { width: 100%; max-width: 400px; }

  .brands-title { width: 80%; }
}

@media (max-width: 767px) {
  .hero-lead { line-height: 1.5; }
  .about-row:first-child .about-text { padding-top: 37px; }
  .about-row + .about-row .about-text { padding-top: 0; }
  /* home services: tiles stack flush, title padded 20/38 (live child theme) */
  .services-row { grid-template-columns: 1fr; padding: 0; border-width: 0; }
  .service-tile, .service-tile[class*="pt"] { padding-top: 0; }
  .service-tile img { margin-bottom: 0; }
  .service-tile.tall img { min-height: 0; }
  .service-tile h3 { padding: 20px 0 38px; }
  .boxes-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo { padding-top: 30px; }
  .footer-col, .footer-col:nth-child(2) { padding-top: 78px; }
  .footer-title { padding-bottom: 18px; }
  .contact-form-wrap { padding-top: 72px; }
  .name-pair { grid-template-columns: 1fr; row-gap: 16px; }
}
