/*
Theme Name: Colonial Colony Landing Page
Theme URI: https://colonialcolony.com/
Author: Your Name
Author URI: https://colonialcolony.com/
Description: A recreation of the Colonial Colony landing page: a full-screen hero photo with a centered logo and two call-to-action buttons linking to the North and South community sites.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: colonial-colony
*/

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #7b838b;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  border: 0;
}

a {
  text-decoration: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link.screen-reader-text:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: #276aab;
  color: #fff;
  z-index: 100000;
  clip: auto;
}

/* ==========================================================================
   Hero landing section
   ========================================================================== */

.cc-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 30px 150px;
  text-align: center;
  background-color: #1a1a1a;
  background-image: url("https://colonialcolony.com/wp-content/uploads/2016/08/sunsetdarkened.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.cc-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.cc-hero__logo {
  display: inline-block;
  margin: 0 0 34px;
}

.cc-hero__logo img {
  width: 100%;
  max-width: 538px;
  height: auto;
}

/* Fallback logo, drawn with CSS/SVG in case the image is ever removed */
.cc-hero__logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
}

.cc-hero__logo-fallback svg {
  width: 46px;
  height: 62px;
  flex-shrink: 0;
}

.cc-hero__logo-fallback span {
  font-family: "UnifrakturMaguntia", "Barlow", serif;
  font-size: 48px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 29px;
  background-color: #2762ab;
  color: #fff;
  font-family: "Barlow", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  border: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-btn:hover,
.cc-btn:focus {
  background-color: #1f4f8a;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 782px) {
  .cc-hero {
    padding: 80px 20px 100px;
  }

  .cc-hero__logo img {
    max-width: 320px;
  }

  .cc-hero__actions {
    flex-direction: column;
    gap: 14px;
  }

  .cc-btn {
    width: 100%;
    max-width: 320px;
  }
}
