/*
Theme Name: Degollado Studios — From Access to Agency
Author: Degollado Studios
Description: Bespoke editorial WordPress theme for Degollado Studios.
Version: 1.0.1
Requires at least: 6.0
Text Domain: degollado-studios
*/

/* =========================================
   1. BRAND COLORS AND GLOBAL STYLES
========================================= */

:root {
  --violet: #281536;
  --violet2: #392046;
  --ivory: #f7f5f0;
  --ink: #251d2b;
  --copper: #b95030;
  --copper-text: #a74427;
  --copper-light: #f0bfa5;
  --lavender: #e5ddea;
  --line: #c9b9b0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 16px/1.6 Inter, Arial, sans-serif;
}

h1,
h2,
h3,
.brand,
.stat-number {
  font-family: Lora, Georgia, serif;
  font-weight: 400;
  line-height: 1.14;
}

h1 {
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  letter-spacing: -.055em;
  margin: .2em 0;
}

h2 {
  font-size: clamp(2.3rem, 4.2vw, 4.2rem);
  letter-spacing: -.04em;
  margin: .3em 0;
}

h3 {
  font-size: 1.65rem;
  margin: .4em 0;
}

p {
  max-width: 66ch;
}

a {
  color: inherit;
}

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

.wrap {
  width: min(1160px, 90%);
  margin: auto;
}

/* =========================================
   2. HEADER AND NAVIGATION
========================================= */

.site-header {
  background: #fcfaf6;
  border-bottom: 1px solid #e9e0da;
  position: relative;
  z-index: 5;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 0;
}

.brand {
  text-decoration: none;
  font-size: 1.7rem;
  line-height: .95;
  letter-spacing: .025em;
  color: var(--violet);
}

.nav-links {
  display: flex;
  gap: 21px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: .86rem;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--copper-text);
}

/* =========================================
   3. BUTTONS AND LINKS
========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--violet);
  color: white;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--violet);
  font-size: .86rem;
  transition: transform .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  color: var(--violet);
}

.btn.light {
  background: transparent;
  color: white;
  border-color: #ddd;
}

.text-link {
  color: var(--copper-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-size: .88rem;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}

/* =========================================
   4. SECTION LABELS
========================================= */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  color: var(--copper-text);
  font-weight: 600;
}

.tagline {
  letter-spacing: .3em;
  font-size: .7rem;
  text-transform: uppercase;
  color: var(--copper-text);
  margin-top: 30px;
}

/* =========================================
   5. HERO
========================================= */

.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  align-items: center;
  gap: 30px;
}

.hero-copy {
  padding: 64px 0;
}

.hero-copy p {
  font-size: 1.06rem;
  line-height: 1.5;
  max-width: 470px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 25px 0;
}

.hero-art {
  min-height: 460px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art:before,
.hero-art:after,
.hero-art .orb {
  content: '';
  display: block;
  position: absolute;
  border-radius: 50%;
  width: 68%;
  aspect-ratio: 1;
}

.hero-art:before {
  background: radial-gradient(
    circle at 28% 35%,
    #dfc3c8 0,
    #d2b4a5 30%,
    #8b677d 67%,
    #3e264d 100%
  );
  left: 5%;
  top: 7%;
  opacity: .95;
}

.hero-art:after {
  border: 1px solid var(--copper);
  right: 0;
  top: 26%;
  background: rgba(222,165,132,.26);
}

.hero-art .orb {
  width: 48%;
  left: 25%;
  top: 23%;
  background: rgba(50,25,70,.24);
  border: 1px solid white;
}

.hero-art .vertical {
  position: absolute;
  height: 110%;
  width: 1px;
  background: var(--copper);
  right: 17%;
  top: -5%;
  z-index: 2;
}

.hero-art .words {
  position: absolute;
  right: 0;
  top: 8%;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  z-index: 3;
}

/* =========================================
   6. EXPERIENCE
========================================= */

.experience {
  background: linear-gradient(110deg, #25122f, #3b214a);
  color: #fff;
  padding: 64px 0 52px;
}

.experience .eyebrow {
  color: var(--copper-light);
}

.experience-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.experience-top h2 {
  font-size: clamp(2rem, 3.4vw, 3.5rem);
}

.experience-top p {
  font-size: .86rem;
}

.stat {
  border-left: 1px solid #927c99;
  padding-left: 22px;
  min-height: 155px;
}

.stat-number {
  font-size: clamp(2.7rem, 4vw, 4.5rem);
}

.stat strong {
  display: block;
  font-weight: 500;
  font-size: .87rem;
  line-height: 1.3;
}

.stat p {
  font-size: .76rem;
  opacity: .85;
}

.affiliations {
  margin-top: 48px;
}

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 20px;
}

.affiliation {
  border-left: 1px solid #927c99;
  padding: 10px 15px;
  font-size: .82rem;
  line-height: 1.3;
}

.affiliation:first-child {
  border: 0;
  padding-left: 0;
}

/* =========================================
   7. SERVICES
========================================= */

.services,
.approach,
.section {
  padding: 80px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 24px;
}

.rule {
  height: 1px;
  background: var(--copper);
  flex: 1;
  opacity: .65;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.card-visual {
  height: 160px;
  background: linear-gradient(
    135deg,
    #b78e80,
    #ead1bb 55%,
    #5e4654
  );
  position: relative;
  overflow: hidden;
}

.card-visual:after {
  content: '';
  position: absolute;
  inset: 25px;
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}

.card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card:nth-child(2) .card-visual {
  background: repeating-linear-gradient(
    125deg,
    #241534,
    #48285b 7px,
    #a283b1 9px,
    #291737 15px
  );
}

.card:nth-child(3) .card-visual {
  background: linear-gradient(
    120deg,
    #6e655d,
    #dfd0bc 50%,
    #8b6d5b
  );
}

.card p {
  font-size: .93rem;
}

/* =========================================
   8. APPROACH
========================================= */

.approach {
  background: #f2eee9;
}

.approach-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}

.orbit {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 270px;
}

.orbit:before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--copper);
  border-radius: 50%;
}

.orbit-circles {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.orbit-circle {
  width: 25%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: clamp(.55rem, .9vw, .8rem);
  margin-left: -1%;
  background: #e6c5b4;
  z-index: 1;
  border: 1px solid #fff;
}

.orbit-circle:nth-child(2) {
  background: #d8cfe0;
}

.orbit-circle:nth-child(3) {
  background: #51305f;
  color: white;
}

.orbit-circle:nth-child(4) {
  background: #e5e2df;
}

.orbit-caption {
  text-align: center;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--copper-text);
  font-size: .72rem;
  margin-top: 10px;
}

/* =========================================
   9. INNER PAGES
========================================= */

.page-hero {
  padding: 75px 0 40px;
}

.page-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

.content-area {
  padding-bottom: 85px;
}

.content-area h2 {
  font-size: 2.2rem;
  margin-top: 45px;
}

.content-area p {
  max-width: 76ch;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.info-box {
  border-top: 2px solid var(--copper);
  padding-top: 18px;
}

.entry-content {
  max-width: 850px;
}

.entry-content a {
  color: var(--copper-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   10. CONTACT AND FOOTER
========================================= */

.contact-band {
  padding: 65px 0;
  background: var(--violet);
  color: #fff;
}

.contact-band h2 {
  max-width: 780px;
}

.contact-band .eyebrow {
  color: var(--copper-light);
}

.site-footer {
  background: #1c1025;
  color: #e9e0ea;
  padding: 36px 0;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
}

.footer-row a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   11. ACCESSIBILITY
========================================= */

/* Skip navigation link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 15px;
  top: 15px;
  z-index: 1000;
  background: white;
  color: var(--violet);
  padding: 12px 18px;
  border: 2px solid var(--violet);
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #a74427;
  outline-offset: 4px;
}

/* Light focus indicator on dark sections */
.experience a:focus-visible,
.contact-band a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #f0bfa5;
}

/* Improve recognition of navigation links */
.nav-links a:not(.btn):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Preserve legibility for zoomed layouts */
body {
  overflow-wrap: break-word;
}

/* Honor reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.mobile-note {
  display: none;
}

/* =========================================
   12. RESPONSIVE LAYOUT
========================================= */

@media (max-width: 900px) {

  .header-row {
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .hero-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy {
    padding: 55px 0 20px;
  }

  .hero-art {
    min-height: 330px;
  }

  .experience-top {
    grid-template-columns: repeat(3, 1fr);
  }

  .experience-intro {
    grid-column: 1 / -1;
  }

  .affiliation-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }

  .cards {
    gap: 16px;
  }
}

@media (max-width: 600px) {

  .header-row {
    display: block;
  }

  .nav-links {
    margin-top: 20px;
  }

  .nav-links a {
    font-size: .78rem;
  }

  .nav-links .btn {
    padding: 8px 10px;
  }

  .hero-art {
    min-height: 290px;
  }

  .experience-top {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: unset;
  }

  .affiliation-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .services,
  .approach,
  .section {
    padding: 55px 0;
  }

  .orbit {
    min-height: 200px;
  }

  .orbit-circle {
    font-size: .52rem;
  }

  .page-hero {
    padding: 50px 0 25px;
  }
}

/* =========================================
   ABOUT PAGE: OUR EXPERTISE
========================================= */

.about-expertise {
  background-color: #281535 !important;
  color: #F7F5F0 !important;
  padding: 48px 40px !important;
  box-sizing: border-box;
}

/* Headings and paragraphs */
.about-expertise h1,
.about-expertise h2,
.about-expertise h3,
.about-expertise h4,
.about-expertise p,
.about-expertise li {
  color: #F7F5F0 !important;
}

/* Links within the section */
.about-expertise a:not(.btn) {
  color: #F0BFA5;
}

/* Maintain comfortable spacing on mobile */
@media (max-width: 600px) {
  .about-expertise {
    padding: 32px 22px !important;
  }
}



/* =========================================
   HOMEPAGE: INSTITUTIONAL LOGOS
========================================= */

.affiliation-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  width: 100%;
  align-items: center;
}

.affiliation {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 90px;
  padding: 12px 16px;
  box-sizing: border-box;
}

.affiliation img {
  display: block;
  width: 100%;
  max-width: 140px;
  height: 65px;
  object-fit: contain;
}

/* Responsive layout */
@media (max-width: 767px) {
  .affiliation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .affiliation {
    min-height: 80px;
    padding: 12px;
  }

  .affiliation img {
    max-width: 120px;
    height: 55px;
  }
}

/* DEGOLLADO STUDIOS — HOMEPAGE NEWSLETTER */

.ds-newsletter-section {
  background-color: #F7F5F0;
  padding: 90px 24px;
}

.ds-newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.ds-newsletter-eyebrow {
  color: #B95030;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ds-newsletter-inner h2 {
  color: #281535;
  font-family: Lora, Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  margin: 0 0 24px;
}

.ds-newsletter-description {
  color: #29252D;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 560px;
}

.ds-newsletter-form {
  max-width: 560px;
  margin: 0 auto;
}

.ds-newsletter-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .ds-newsletter-section {
    padding: 60px 20px;
  }
}

/* HOMEPAGE NEWSLETTER SECTION */

.ds-newsletter-section {
  background: #F7F5F0;
  padding: 72px 24px;
}

.ds-newsletter-section .wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.ds-newsletter-section .ds-newsletter-inner {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Keep the embedded form centered */
.ds-newsletter-section .mailpoet_form {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Responsive spacing */
@media (max-width: 600px) {
  .ds-newsletter-section {
    padding: 48px 16px;
  }

  .ds-newsletter-section .ds-newsletter-inner {
    max-width: 100%;
  }
}
