/*
Theme Name: AWR Light
Theme URI: https://attorneyswr.co.za/
Author: Worth Tech
Description: Lightweight editable WordPress theme for Attorneys West & Rossouw. Replaces Elementor with native WordPress content types and settings.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: awr-light
*/

:root {
  --awr-dark: #111;
  --awr-header: #151817;
  --awr-blue: #1f5f8f;
  --awr-accent: #1f5f8f;
  --awr-text: #333;
  --awr-muted: #666;
  --awr-border: #e5e5e5;
  --awr-light: #f6f6f6;
  --awr-max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--awr-text);
  line-height: 1.65;
  background: #fff;
}

a {
  color: var(--awr-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container {
  max-width: var(--awr-max);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 920px;
}

.center {
  text-align: center;
}

.topbar {
  background: #101010;
  color: #ddd;
  font-size: 14px;
}

.topbar a {
  color: #fff;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
}

.sep {
  display: inline-block;
  margin: 0 12px;
  color: #777;
}

.site-header {
  position: relative;
  background: var(--awr-header);
  z-index: 5;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 118px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.logo-wrap:hover {
  text-decoration: none;
}

.site-logo,
.custom-logo {
  display: block;
  width: 150px;
  max-height: 105px;
  object-fit: contain;
  padding: 8px;
}

.site-title {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.25;
  font-size: 18px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  color: #e6e6e3;
  font-weight: 700;
  padding: 36px 0;
  border-bottom: 3px solid transparent;
}

.nav-menu .current-menu-item > a,
.nav-menu a:hover {
  color: #fff;
  border-bottom-color: var(--awr-blue);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 10px;
}

.hero {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.08)),
    url("assets/images/Cape-Town-Cover-Foto-scaled.jpg");
  background-size: cover;
  background-position: center;
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-bottom: 0;
}

.hero .tagline {
  font-size: 26px;
  font-weight: 300;
  margin: 170px 0 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.section {
  padding: 78px 0;
  background: #fff;
}

.section.alt {
  background: var(--awr-light);
}

.section h1,
.section h2 {
  margin: 0 0 22px;
  text-align: center;
  line-height: 1.2;
  color: #303030;
}

.section h1 {
  font-size: 40px;
}

.section h2 {
  font-size: 34px;
}

.lead {
  font-size: 18px;
  text-align: center;
  max-width: 960px;
  margin: 0 auto 28px;
  color: #444;
}

.button,
.wp-block-button__link,
input[type="submit"],
button {
  display: inline-block;
  background: var(--awr-blue);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: 13px 24px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.wp-block-button__link:hover {
  text-decoration: none;
  background: #17486b;
  color: #fff;
}

.text-link {
  font-weight: 700;
  color: var(--awr-blue);
}

.grid {
  display: grid;
  gap: 28px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--awr-border);
  padding: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-hero {
  background: var(--awr-header);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0;
  font-size: 40px;
  color: #fff;
}

.content-area {
  padding: 56px 0;
}

.entry-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 8px;
}

.entry-meta {
  text-align: center;
  color: #777;
  margin-bottom: 36px;
}

.entry-content {
  max-width: 860px;
  margin: 0 auto;
}

.entry-content h2 {
  margin-top: 36px;
}

.pagination {
  margin-top: 34px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 4px;
  padding: 8px 12px;
  border: 1px solid #ddd;
}

.pagination .current {
  background: var(--awr-blue);
  color: #fff;
}

.intro-section {
  padding-top: 72px;
  padding-bottom: 78px;
}

.team-feature {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 46px;
  align-items: center;
}

.team-copy {
  text-align: center;
}

.team-copy h2 {
  text-align: left;
  font-size: 31px;
  line-height: 1.18;
  margin-bottom: 24px;
}

.team-carousel-wrap {
  position: relative;
  min-width: 0;
  width: min(100%, 460px);
  margin: 0 auto;
  padding: 0 54px;
}

.team-carousel {
  display: block;
  overflow: hidden;
  padding: 4px;
}

.team-carousel .team-tile {
  display: none;
  width: 100%;
  min-width: 100%;
}

.team-carousel .team-tile.is-active {
  display: flex;
}

.team-carousel .team-tile img {
  height: 390px;
}

.team-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 18px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.team-gallery::-webkit-scrollbar {
  height: 8px;
}

.team-gallery::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.team-gallery::-webkit-scrollbar-thumb {
  background: #c5c5c5;
}

.team-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 54px;
  border: 0;
  border-radius: 0;
  background: var(--awr-blue);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.team-carousel-prev {
  left: 0;
}

.team-carousel-next {
  right: 0;
}

.team-carousel-btn:hover,
.team-carousel-btn:focus-visible {
  background: #17496d;
}

.team-carousel-btn.is-disabled {
  opacity: 0.4;
  cursor: default;
}

.team-tile {
  text-align: center;
  background: #fff;
  border: 1px solid var(--awr-border);
  padding: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.team-tile img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: grayscale(1);
  display: block;
  margin: 0;
}

.team-tile h3 {
  font-size: 18px;
  line-height: 1.25;
  margin: 18px 16px 5px;
  color: #333;
}

.team-tile p {
  margin: 0 16px 22px;
  color: var(--awr-muted);
  font-size: 15px;
  line-height: 1.35;
}

.about-team {
  margin-top: 0;
  padding-top: 76px;
  padding-bottom: 76px;
  background: var(--awr-light);
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--awr-border);
  border-left: 4px solid var(--awr-accent);
  padding: 30px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.service-card h3 {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.25;
}

.service-card h3 a {
  color: #333;
}

.service-card p {
  margin: 0;
  color: #555;
}

.section-action {
  margin-top: 34px;
}

.location-photo-card {
  border: 1px solid var(--awr-border);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.location-photo-card img {
  display: block;
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.location-photo-card div {
  padding: 28px;
}

.location-photo-card h3 {
  margin-top: 0;
  font-size: 22px;
}

.insight-section {
  padding: 78px 0 92px;
  background: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-content: center;
}

.post-card {
  border: 1px solid var(--awr-border);
  background: #fff;
  padding: 26px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  min-height: 180px;
}

.post-card h2,
.post-card h3 {
  font-size: 21px;
  text-align: left;
  margin: 0 0 12px;
}

.post-card h3 a {
  color: #333;
}

.post-card .meta {
  font-size: 14px;
  color: #777;
  margin: 0 0 12px;
}

.contact-home-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.contact-home-grid h2 {
  text-align: left;
}

.contact-locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.contact-locations article {
  background: var(--awr-light);
  padding: 20px;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  background: #fff;
  color: #222;
  padding: 13px;
  margin-bottom: 16px;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form .form-row {
  margin-bottom: 12px;
}

.form-note {
  padding: 12px;
  background: #f4f4f4;
  border-left: 4px solid var(--awr-blue);
}

.form-note.success {
  border-left-color: #2d8c57;
}

.form-note.error {
  border-left-color: #b84a4a;
}

.site-footer {
  background: #111;
  color: #d8d8d8;
  padding: 52px 0 20px;
}

.site-footer h2 {
  font-size: 24px;
  color: #fff;
  margin: 0 0 22px;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.3fr 1fr;
  gap: 42px;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-menu li {
  margin-bottom: 8px;
}

.copyright {
  border-top: 1px solid #333;
  margin-top: 34px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.elementor-widget-theme-post-content :is(ol, ul, li) {
  margin-bottom: 10px;
  margin-top: 10px;
  list-style-position: outside;
  margin-left: 20px;
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

.elementor-widget-theme-post-content :is(h2, h3, h6) {
  font-size: 20px;
  line-height: 22px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #222;
}

.elementor-widget-theme-post-content blockquote {
  margin: 5px 0 15px;
  padding: 10px 10px 10px 30px;
  background-color: #f4f4f4;
  font-style: italic;
  font-weight: 500;
  border-left: 3px solid var(--awr-blue);
}

@media (max-width: 1000px) {
  .team-feature,
  .contact-home-grid {
    grid-template-columns: 1fr;
  }

  .team-copy h2,
  .team-copy {
    text-align: center;
  }

  .team-gallery {
    grid-auto-columns: minmax(220px, 42vw);
  }

  .team-carousel .team-tile img {
    height: 360px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 460px;
  }

  .hero .tagline {
    margin-top: 120px;
  }

  .nav-menu {
    gap: 18px;
  }

  .nav-menu a {
    padding: 25px 0;
  }
}

@media (max-width: 720px) {
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header .container {
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .site-title {
    font-size: 15px;
  }

  .site-logo,
  .custom-logo {
    width: 120px;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-menu {
    display: block;
  }

  .nav-menu a {
    padding: 10px 0;
    border-bottom: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .service-card-grid,
  .post-grid,
  .footer-grid,
  .contact-locations {
    grid-template-columns: 1fr;
  }

  .team-carousel-wrap {
    width: min(100%, 430px);
    padding: 0 44px;
  }

  .team-gallery {
    grid-auto-columns: minmax(235px, 82vw);
  }

  .team-carousel .team-tile img {
    height: 330px;
  }

  .team-carousel-btn {
    width: 36px;
    height: 48px;
    font-size: 26px;
  }

  .section {
    padding: 46px 0;
  }

  .hero {
    min-height: 360px;
  }

  .hero .tagline {
    font-size: 21px;
    margin-top: 80px;
  }

  .location-photo-card img {
    height: 210px;
  }

  .footer-menu {
    display: block;
  }
}
.social-icon {
    display: inline-flex;
    align-items: center;
    color: #fff;
    vertical-align: middle;
}

.social-icon:hover {
    color: var(--awr-accent);
    text-decoration: none;
}

.social-icon svg {
    display: block;
}
.topbar-contact {
    display: inline-flex;
    align-items: center;
}